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();