1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

added simple test for signal handling in os/proc-kill using :kill

This commit is contained in:
tionis 2023-05-16 13:27:52 +02:00
parent 0b58e505ee
commit 71d51c160d

View File

@ -52,6 +52,11 @@
(def retval (os/proc-wait p))
(assert (not= retval 24) "Process was *not* terminated by parent"))
(let [p (os/spawn [janet "-e" `(do (ev/sleep 30) (os/exit 24)`] :p)]
(os/proc-kill p false :kill)
(def retval (os/proc-wait p))
(assert (not= retval 24) "Process was *not* terminated by parent"))
# Parallel subprocesses
(defn calc-1