From d593a8980153136eb65e73ba916ce8d72e86e650 Mon Sep 17 00:00:00 2001 From: henning <> Date: Tue, 13 Jul 2004 11:16:22 +0000 Subject: [PATCH] liek bgpd, use a socketpair(2) instead of a pipe(2) --- src/usr.sbin/ntpd/ntpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index 1ff54c31..a3dfbd75 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/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 @@ -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);