aboutsummaryrefslogtreecommitdiff
path: root/src/Downloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Downloader.cpp')
-rw-r--r--src/Downloader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Downloader.cpp b/src/Downloader.cpp
index 2c0d316..14580bb 100644
--- a/src/Downloader.cpp
+++ b/src/Downloader.cpp
@@ -81,7 +81,7 @@ namespace QuickMedia {
if(read_program.read_fd != -1)
close(read_program.read_fd);
if(read_program.pid != -1) {
- kill(read_program.pid, SIGTERM);
+ kill(read_program.pid, SIGKILL);
int status;
waitpid(read_program.pid, &status, 0);
}
@@ -273,7 +273,7 @@ namespace QuickMedia {
if(read_program_file)
fclose(read_program_file);
if(read_program.pid != -1) {
- kill(read_program.pid, SIGTERM);
+ kill(read_program.pid, SIGKILL);
int status;
waitpid(read_program.pid, &status, 0);
}
@@ -326,7 +326,7 @@ namespace QuickMedia {
static int64_t seek_fn(YoutubeReadProgram *program, int64_t offset) {
if(program->read_program.pid != -1) {
- kill(program->read_program.pid, SIGTERM);
+ kill(program->read_program.pid, SIGKILL);
int status;
waitpid(program->read_program.pid, &status, 0);
program->read_program.pid = -1;
@@ -387,7 +387,7 @@ namespace QuickMedia {
static void close_fn(YoutubeReadProgram *program) {
if(program->read_program.pid != -1) {
- kill(program->read_program.pid, SIGTERM);
+ kill(program->read_program.pid, SIGKILL);
int status;
waitpid(program->read_program.pid, &status, 0);
program->read_program.pid = -1;