From owner-freebsd-current Wed May 1 13: 4:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id 170EA37B41A for ; Wed, 1 May 2002 13:04:10 -0700 (PDT) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id g41K48X11087951 for ; Thu, 2 May 2002 00:04:08 +0400 (MSD) Date: Thu, 2 May 2002 00:04:07 +0400 (MSD) From: Maxim Konovalov To: current@freebsd.org Subject: newsyslog(8) should wait(2) for children Message-ID: <20020501235620.I86238-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Does anyone object to the next patch: Index: newsyslog.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/newsyslog/newsyslog.c,v retrieving revision 1.41 diff -u -r1.41 newsyslog.c --- newsyslog.c 10 Apr 2002 10:38:44 -0000 1.41 +++ newsyslog.c 1 May 2002 19:15:40 -0000 @@ -38,6 +38,7 @@ #include #include +#include #include #include #include @@ -135,6 +136,12 @@ p = p->next; free((char *) q); q = p; + } + for (;;) { + if (wait(NULL) < 0) { + if (errno != EINTR) + break; + } } return (0); } %%% -- Maxim Konovalov, MAcomnet, Internet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message