Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Pipe?
Hi list,
I need use pipe to analyze consecutive pid of ts. With this code:
if(pid=fork()<0) perror("\nfork error\n");
else if (pid>0)
{//parent
close(fd[0]);
//tuning operation and get fd_dvr handle
close(fd[1]);
if (waitpid(pid,NULL,0)<0) perror("waitpid error");
exit(0);
}
else if (pid==0)
{//child
close(fd[1]);
close(fd[0]);
exit(0);
}
_________________________________________________________________
Vinci la nuova Nissan Micra con MSN Messenger! http://www.msn.it/messenger/
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index