[FFmpeg-devel] [PATCH] Make ffserver child don't chdir just after fork

Stefano Sabatini stefano.sabatini-lala
Sat Jun 21 13:33:00 CEST 2008


Hi all,

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).

Regards.
-- 
FFmpeg = Fast & Friendly Meaningless Proud Esoteric Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffserver-child-dont-chdir.patch
Type: text/x-diff
Size: 374 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080621/54e69bfb/attachment.patch>



More information about the ffmpeg-devel mailing list