Pass the right pid into the parent and child tasks so that when a test

fails, we kill the right partner process.
This commit is contained in:
rwatson 2006-04-02 11:03:05 +00:00
parent 628ed75adb
commit 02d5fc2644

View File

@ -161,9 +161,9 @@ main(int argc, char *argv[])
err(-1, "fork");
if (child_pid == 0) {
child_pid = getpid();
tcp_server(child_pid);
tcp_server(parent_pid);
} else
tcp_client(parent_pid, 800);
tcp_client(child_pid, 800);
return (0);
}