1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

ffserver: check chdir() return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-01-07 23:05:20 +01:00
parent 2d6f317d71
commit fc5a905a6d

View File

@ -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);