mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
ffserver: check chdir() return
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2d6f317d71
commit
fc5a905a6d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user