diff options
Diffstat (limited to 'userland/sh/sh.c')
-rw-r--r-- | userland/sh/sh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/userland/sh/sh.c b/userland/sh/sh.c index e7741aa..e386ef6 100644 --- a/userland/sh/sh.c +++ b/userland/sh/sh.c @@ -49,7 +49,9 @@ void remove_child_process(int pid) { void slaugther_children(void) { struct child_process *child = children; for (; child; child = child->next) { - kill(child->pid, SIGTERM); + int fd = open_process(child->pid); + kill(fd, SIGTERM); + close(fd); } } |