mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
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:
parent
8c4d74c408
commit
dfe0ec64aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157401
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue