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 [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.



Reply via email to