Browse Source

ffserver: check chdir() return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
fc5a905a6d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      ffserver.c

+ 4
- 1
ffserver.c 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);



Loading…
Cancel
Save