if ((pid = fork())> 0) { serv_pid = pid; printf("server pid: %d\n", serv_pid); } if (pid == 0) { if (execv("test/hipnetcat", serv_argv)) { perror("execv"); return; } } you mean&& this two if statements? I am confused, they are 2 processes here I don't know how can you do that...
Forget about what I am saying here, I get your point now :) Xin