[FFmpeg-devel] [PATCH] Make ffserver daemon chdir just after log init

Stefano Sabatini stefano.sabatini-lala
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.

Hi all,

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.

Regards.
-- 
FFmpeg = Fostering & Funny Maxi Prodigious Extravagant Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffserver-cd-after-log-init-00.patch
Type: text/x-diff
Size: 592 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080623/d9e6fc80/attachment.patch>



More information about the ffmpeg-devel mailing list