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