From b003080265399233aad7de08327e25513ccc9ebc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 8 Jan 2024 20:09:31 +0100 Subject: Kill children --- video_player/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video_player/src') diff --git a/video_player/src/main.cpp b/video_player/src/main.cpp index c80cf9a..0342b45 100644 --- a/video_player/src/main.cpp +++ b/video_player/src/main.cpp @@ -427,7 +427,7 @@ static int64_t size_fn(void *cookie) { } if(res != 0) - kill(header_program.pid, SIGTERM); + kill(header_program.pid, SIGKILL); int status = 0; if(waitpid(header_program.pid, &status, 0) == -1) { @@ -493,7 +493,7 @@ static int64_t seek_fn(void *cookie, int64_t offset) { ReadProgram *program = (ReadProgram*)cookie; if(program->pid != -1) { - kill(program->pid, SIGTERM); + kill(program->pid, SIGKILL); int status; waitpid(program->pid, &status, 0); program->pid = -1; @@ -548,7 +548,7 @@ static void close_fn(void *cookie) { ReadProgram *program = (ReadProgram*)cookie; if(program->pid != -1) { - kill(program->pid, SIGTERM); + kill(program->pid, SIGKILL); int status; waitpid(program->pid, &status, 0); program->pid = -1; -- cgit v1.2.3