[FFmpeg-devel] "OPW Qualification Task: Enable daemon mode for FFserver"

Binathi Bingi binti179 at gmail.com
Mon Nov 3 20:09:22 CET 2014


Hello,

Inside the child process, I closed the file descriptor and then reopened
and redirected them using dup2() and later closed the opened file. I am not
sure if I understood and used the functionality of dup2() in the right
sense.

Regards,
Binathi

On Sat, Nov 1, 2014 at 10:18 PM, Lukasz Marek <lukasz.m.luki2 at gmail.com>
wrote:

> On 01.11.2014 17:20, Binathi Bingi wrote:
>
>> +    if (config.ffserver_daemon) {
>> +        int ffserver_id = 0;
>>
>
> You may change int to pid_t too, which is actually returned by fork()
>
>  +        pid_t sid = 0;
>> +
>> +        ffserver_id = fork();
>>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Restore-Daemon-functionality-in-FFserver.patch
Type: text/x-patch
Size: 4297 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141104/8a5bd89c/attachment.bin>


More information about the ffmpeg-devel mailing list