mirror of
https://github.com/janet-lang/janet
synced 2025-10-15 15:57:41 +00:00
use SIGTERM for os/proc-kill signal test
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
(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)
|
||||
(os/proc-kill p false :term)
|
||||
(def retval (os/proc-wait p))
|
||||
(assert (not= retval 24) "Process was *not* terminated by parent"))
|
||||
|
||||
|
Reference in New Issue
Block a user