[Git][cmucl/cmucl][master] Include the exit code when printing the process structure.
Raymond Toy
rtoy at common-lisp.net
Sat Oct 10 05:17:35 UTC 2015
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:
- src/code/run-program.lisp
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.
;;;
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/3f5fb01a6e5f8e4efb8d3843d245c300f7889d3f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20151010/a348bc2d/attachment.html>
More information about the cmucl-cvs
mailing list