From 326cedcca7050ec0b143ff3d2ad94839f77ab22e Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 1 Jul 2024 16:21:43 +0200 Subject: LibC: Change how kill() works --- userland/sh/sh.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'userland/sh') 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); } } -- cgit v1.2.3