[FFmpeg-devel] [PATCH] Make ffserver child don't chdir just after fork
Sat Jun 21 13:33:00 CEST 2008
currently when ffserver runs in daemon mode forks, then the parent
exits immediately while the child chdir()s to "/", which is also the dir
when it opens its log file, which isn't what the user expects (in most
cases it will simply fail to open the file because it doesn't have
write permission on that dir).
A possible solution to the problem could be simply not to chdir, but
I'm not very familiar with the ffserver.c code so this could be a
wrong fix (and maybe we should anyway check for the result of the open
operation on the log file).
FFmpeg = Fast & Friendly Meaningless Proud Esoteric Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 374 bytes
Desc: not available
More information about the ffmpeg-devel