From 784fb4e3483269b305e48e7d0b39177ecddb3351 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 5 Jul 2014 07:57:44 +0000 Subject: Our fork() never misses --- usr.bin/rdist/child.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'usr.bin/rdist') diff --git a/usr.bin/rdist/child.c b/usr.bin/rdist/child.c index dd1deea4f2f..504b386607e 100644 --- a/usr.bin/rdist/child.c +++ b/usr.bin/rdist/child.c @@ -1,4 +1,4 @@ -/* $OpenBSD: child.c,v 1.22 2014/07/05 07:25:27 guenther Exp $ */ +/* $OpenBSD: child.c,v 1.23 2014/07/05 07:57:43 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -462,15 +462,6 @@ spawn(struct cmd *cmd, struct cmd *cmdlist) */ static CHILD newchild; -#if defined(FORK_MISSES) - /* - * XXX Some OS's have a bug where fork does not - * always return properly to the parent - * when a number of forks are done very quicky. - */ - sleep(2); -#endif /* FORK_MISSES */ - /* Receive notification when the child exits */ (void) signal(SIGCHLD, reap); -- cgit v1.2.3