Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
3f5fb01a
by Raymond Toy
at 2015-10-09T22:17:20Z
Include the exit code when printing the process structure.
It's really nice to see the exit code of the process when printing out
the process structure.
Fix a typo too: "tings" -> "things".
1 changed file:
Changes:
src/code/run-program.lisp
--- a/src/code/run-program.lisp
+++ b/src/code/run-program.lisp
@@ -90,15 +90,16 @@
output ; Stream from child's output or nil.
error ; Stream from child's error output or nil.
status-hook ; Closure to call when PROC changes status.
- plist ; Place for clients to stash tings.
+ plist ; Place for clients to stash things.
cookie ; List of the number of pipes from the subproc.
)
(defun %print-process (proc stream depth)
(declare (ignore depth))
- (format stream "#<process ~D ~S>"
+ (format stream "#<process ~D ~S code: ~S>"
(process-pid proc)
- (process-status proc)))
+ (process-status proc)
+ (process-exit-code proc)))
;;; PROCESS-STATUS -- Public.
;;;