diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-13 11:16:23 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-13 11:16:23 +0000 |
commit | 5e3584bb013cf6b858c56cf75960503442db68a3 (patch) | |
tree | 322f830f557dad366d211eef7908c640de4bfd0b | |
parent | a20320836825d2e0edb6332aacb5334f33361140 (diff) |
liek bgpd, use a socketpair(2) instead of a pipe(2)
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 1ff54c31912..a3dfbd75d6d 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.12 2004/07/12 09:38:57 dtucker Exp $ */ +/* $OpenBSD: ntpd.c,v 1.13 2004/07/13 11:16:22 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -125,8 +125,8 @@ main(int argc, char *argv[]) if (!debug) daemon(1, 0); - if (pipe(pipe_chld) == -1) - fatal("pipe"); + if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_chld) == -1) + fatal("socketpair"); /* fork children */ chld_pid = ntp_main(pipe_chld, &conf); |