diff options
author | brian <brian@cvs.openbsd.org> | 1999-03-07 01:42:03 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1999-03-07 01:42:03 +0000 |
commit | e9a08521ed72cbbc61c15cd551b95b5209db1b23 (patch) | |
tree | 3ea6d5e219806ac61583c531994a42f5c86a97ae /usr.sbin/ppp | |
parent | 94c11927461d2abf6cce275a9543e40b73b5518c (diff) |
Use socketpair() instead of pipe()... pipe() doesn't return
two bi-directional descriptors under OpenBSD.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ppp/modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/modem.c b/usr.sbin/ppp/ppp/modem.c index b4fb8f11578..d61c9ffaf69 100644 --- a/usr.sbin/ppp/ppp/modem.c +++ b/usr.sbin/ppp/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.7 1999/03/07 01:03:04 brian Exp $ + * $Id: modem.c,v 1.8 1999/03/07 01:42:02 brian Exp $ * * TODO: */ @@ -554,7 +554,7 @@ modem_Open(struct physical *modem, struct bundle *bundle) int fids[2]; modem->name.base = modem->name.full + 1; - if (pipe(fids) < 0) + if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fids) < 0) log_Printf(LogPHASE, "Unable to create pipe for line exec: %s\n", strerror(errno)); else { |