1
0
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:
tionis
2023-05-16 18:47:38 +02:00
parent 56d72ec4c5
commit 0f35acade1
2 changed files with 6 additions and 4 deletions

View File

@@ -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"))