From 02d5fc264404b64f570cca033b9962874747a98a Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 2 Apr 2006 11:03:05 +0000 Subject: [PATCH] Pass the right pid into the parent and child tasks so that when a test fails, we kill the right partner process. --- tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c b/tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c index 6cfd24371f2a..40752ffcecbe 100644 --- a/tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c +++ b/tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c @@ -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); }