[FFmpeg-devel] [PATCH] Make ffserver child don't chdir just after fork
Baptiste Coudurier
baptiste.coudurier
Sat Jun 21 23:31:16 CEST 2008
Hi,
Stefano Sabatini wrote:
> 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).
>
Humm, yes, patch ok. I don't know why it would chdir to "/".
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
More information about the ffmpeg-devel
mailing list