summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffserver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 5ee5c32..80a36c7 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -499,7 +499,10 @@ static void start_children(FFStream *feed)
}
/* This is needed to make relative pathnames work */
- chdir(my_program_dir);
+ if (chdir(my_program_dir) < 0) {
+ http_log("chdir failed\n");
+ exit(1);
+ }
signal(SIGPIPE, SIG_DFL);
OpenPOWER on IntegriCloud