#include
#include
#include
#include
#include
#include
#include
int main(int argc, char *argv[])
{
char *argv_execv[]={"zk_v4l2_x264_source", "1234", NULL};
if(fork()==0) {
if(execv("./zk_v4l2_x264_source", argv_execv)<0)
perror("Err on execv");
}
/*while(1)
{
printf("this is parent!\n");
usleep(10000000);
}*/
return 0;//直接退出就必须用Kill结束./zk_v4l2_x264_source程序了!
}
阅读(914) | 评论(0) | 转发(0) |