Exit with status 1 if sub-process fails

This commit is contained in:
Martin Puppe 2020-12-02 17:21:31 +01:00
parent 88b66fe6bc
commit ab39b45e30

View file

@ -219,7 +219,11 @@ EOF
(handle-stdin stdin phase-channel basedir files)))]) (handle-stdin stdin phase-channel basedir files)))])
(thread-wait stderr-thread) (thread-wait stderr-thread)
(thread-wait stdin-thread)))) (thread-wait stdin-thread))
(subprocess-wait sp)
(let ([status (subprocess-status sp)])
(unless (equal? status 0)
(exit 1)))))
(void)) (void))