[FFmpeg-devel] [PATCH] Make ffserver daemon chdir just after log init
Mon Jun 23 09:28:59 CEST 2008
On date Monday 2008-06-23 02:09:43 +0100, M?ns Rullg?rd encoded:
> Ramiro Polla <ramiro at lisha.ufsc.br> writes:
> > Baptiste Coudurier wrote:
> >> I don't know why it would chdir to "/".
> > Suppose you want to delete the directory from where the daemon was
> > started,
> That's only a problem on lesser operating systems. ;-)
> > or unmount its disk...
> Yes, this is a valid reason.
here it is another fix, this time the problem of the missing logfile
is solved chdir()ing just after the log file has been just opened, so
the log file will be placed in the dir when ffserver is launched as
expected, then the daemon process will chdir() to "/" as it seems
usual and safer for daemons.
FFmpeg = Fostering & Funny Maxi Prodigious Extravagant Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 592 bytes
Desc: not available
More information about the ffmpeg-devel