Don't count exiting with a status of 0 as a failure

This commit is contained in:
Christopher Baines 2022-01-14 15:24:12 +00:00
parent 21cb33a859
commit fcf1177d2c

View file

@ -103,13 +103,14 @@
;; No process to wait for
#f)
((pid . status)
(match (hash-ref processes pid)
((_ (id))
(simple-format (current-error-port)
"pid ~A (job: ~A) failed with status ~A\n"
pid id status)
(unless (eq? status 0)
(match (hash-ref processes pid)
((_ (id))
(simple-format (current-error-port)
"pid ~A (job: ~A) failed with status ~A\n"
pid id status)
(handle-job-failure id)))
(handle-job-failure id))))
(hashv-remove! processes pid)