diff options
author | 2002-01-02 16:15:32 +0000 | |
---|---|---|
committer | 2002-01-02 16:15:32 +0000 | |
commit | 8719f1cf8624d4bd2bc4d37fed1b07b9a3ab31fc (patch) | |
tree | cabd184273d9925cc18542ff9328acc4c130418f /regress/lib/libc_r/socket/2/socket2.c | |
parent | Remove extra reference to poll.2. Spotted by form@. (diff) | |
download | wireguard-openbsd-8719f1cf8624d4bd2bc4d37fed1b07b9a3ab31fc.tar.xz wireguard-openbsd-8719f1cf8624d4bd2bc4d37fed1b07b9a3ab31fc.zip |
Be sure both programs are using the same port.
Diffstat (limited to 'regress/lib/libc_r/socket/2/socket2.c')
-rw-r--r-- | regress/lib/libc_r/socket/2/socket2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/lib/libc_r/socket/2/socket2.c b/regress/lib/libc_r/socket/2/socket2.c index 70747544a65..7ba7d19df7d 100644 --- a/regress/lib/libc_r/socket/2/socket2.c +++ b/regress/lib/libc_r/socket/2/socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */ +/* $OpenBSD: socket2.c,v 1.3 2002/01/02 16:15:32 fgsch Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -127,10 +127,12 @@ sock_accept(arg) CHECKr(pthread_mutex_lock(&waiter_mutex)); CHECKr(pthread_create(&wthread, NULL, waiter, NULL)); + sprintf(buf, "%d", port); + CHECKe(pid = fork()); switch(pid) { case 0: - execl("socket2a", "socket2a", "fork okay", (char *)NULL); + execl("socket2a", "socket2a", "fork okay", buf, (char *)NULL); DIE(errno, "execl"); default: break; |