From owner-cvs-lib Sun May 11 00:51:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA17165 for cvs-lib-outgoing; Sun, 11 May 1997 00:51:53 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA17158; Sun, 11 May 1997 00:51:46 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id RAA21226; Sun, 11 May 1997 17:49:58 +1000 Date: Sun, 11 May 1997 17:49:58 +1000 From: Bruce Evans Message-Id: <199705110749.RAA21226@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, CVS-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, davidn@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libutil Makefile libutil.h setproctitle.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Branch: lib/libutil RELENG_2_2 > Modified: lib/libutil Makefile libutil.h setproctitle.3 > Log: > Brings in login.conf, uucplock to 2.2 branch. > Bumps sharedlib version to 2.2, in line with current (since they are > now identical in both branches). The current version also needs to be bumped, since login_getpwclass didn't exist yesterday. New versions of login and su stopped working with old libraries here. Bruce From owner-cvs-lib Sun May 11 01:08:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA17545 for cvs-lib-outgoing; Sun, 11 May 1997 01:08:25 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA17498; Sun, 11 May 1997 01:06:45 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA06259; Sun, 11 May 1997 01:06:10 -0700 (PDT) Date: Sun, 11 May 1997 01:06:10 -0700 (PDT) Message-Id: <199705110806.BAA06259@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil login_cap.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/11 01:06:10 Branch: lib/libutil RELENG_2_2 Modified: lib/libutil login_cap.c Log: Bugfix: put back foolishly moved variable initialisation in arrayize() that caused login_getcaplist() to trap. Revision Changes Path 1.12.2.1 +2 -2 src/lib/libutil/login_cap.c From owner-cvs-lib Sun May 11 01:09:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA17571 for cvs-lib-outgoing; Sun, 11 May 1997 01:09:33 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA17522; Sun, 11 May 1997 01:08:04 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA06294; Sun, 11 May 1997 01:07:29 -0700 (PDT) Date: Sun, 11 May 1997 01:07:29 -0700 (PDT) Message-Id: <199705110807.BAA06294@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil login_cap.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/11 01:07:29 Modified: lib/libutil login_cap.c Log: MF2.2: bugfix in arrayize(). Revision Changes Path 1.13 +2 -2 src/lib/libutil/login_cap.c From owner-cvs-lib Sun May 11 01:36:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA18515 for cvs-lib-outgoing; Sun, 11 May 1997 01:36:45 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA18304; Sun, 11 May 1997 01:32:19 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA06370; Sun, 11 May 1997 01:31:44 -0700 (PDT) Date: Sun, 11 May 1997 01:31:44 -0700 (PDT) Message-Id: <199705110831.BAA06370@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil Makefile Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/11 01:31:43 Modified: lib/libutil Makefile Log: Bump shared lib version to 2.3. Suggested by: bde Revision Changes Path 1.12 +1 -1 src/lib/libutil/Makefile From owner-cvs-lib Sun May 11 01:52:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA19074 for cvs-lib-outgoing; Sun, 11 May 1997 01:52:43 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA18993; Sun, 11 May 1997 01:51:08 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA06467; Sun, 11 May 1997 01:50:33 -0700 (PDT) Date: Sun, 11 May 1997 01:50:33 -0700 (PDT) Message-Id: <199705110850.BAA06467@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil logout.3 logwtmp.3 setproctitle.3 uucplock.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/11 01:50:33 Modified: lib/libutil logout.3 logwtmp.3 setproctitle.3 uucplock.3 Log: Add #include in synopsis, now required for libutil.h. Revision Changes Path 1.5 +2 -1 src/lib/libutil/logout.3 1.5 +2 -1 src/lib/libutil/logwtmp.3 1.9 +2 -1 src/lib/libutil/setproctitle.3 1.6 +2 -1 src/lib/libutil/uucplock.3 From owner-cvs-lib Sun May 11 01:54:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA19118 for cvs-lib-outgoing; Sun, 11 May 1997 01:54:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA19080; Sun, 11 May 1997 01:52:44 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA06539; Sun, 11 May 1997 01:52:09 -0700 (PDT) Date: Sun, 11 May 1997 01:52:09 -0700 (PDT) Message-Id: <199705110852.BAA06539@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil login_tty.3 logout.3 logwtmp.3 setproctitle.3 uucplock.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/11 01:52:09 Branch: lib/libutil RELENG_2_2 Modified: lib/libutil login_tty.3 logout.3 logwtmp.3 setproctitle.3 uucplock.3 Log: MFC: #include in synopsis. Revision Changes Path 1.2.2.1 +2 -1 src/lib/libutil/login_tty.3 1.2.2.1 +2 -1 src/lib/libutil/logout.3 1.2.2.1 +2 -1 src/lib/libutil/logwtmp.3 1.4.2.3 +2 -1 src/lib/libutil/setproctitle.3 1.5.2.1 +2 -1 src/lib/libutil/uucplock.3 From owner-cvs-lib Sun May 11 02:26:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA20089 for cvs-lib-outgoing; Sun, 11 May 1997 02:26:13 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA20082; Sun, 11 May 1997 02:26:01 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id TAA23475; Sun, 11 May 1997 19:23:46 +1000 Date: Sun, 11 May 1997 19:23:46 +1000 From: Bruce Evans Message-Id: <199705110923.TAA23475@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, CVS-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, davidn@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libutil login_tty.3 logout.3 logwtmp.3 setproctitle.3 uucplock.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Branch: lib/libutil RELENG_2_2 > Modified: lib/libutil login_tty.3 logout.3 logwtmp.3 setproctitle.3 > uucplock.3 > Log: > MFC: #include in synopsis. Documented intefaces shouldn't be changed. It was particularly bad to break application interfaces to support an internal library function. I fixed it like this: --- diff -c2 libutil.h~ libutil.h *** libutil.h~ Sun May 11 10:29:11 1997 --- libutil.h Sun May 11 14:24:52 1997 *************** *** 42,49 **** int forkpty __P((int *amaster, char *name, struct termios *termp, struct winsize *winp)); char *uu_lockerr __P((int uu_lockresult)); int uu_lock __P((char *ttyname)); int uu_unlock __P((char *ttyname)); - int _secure_path __P((const char *path, uid_t uid, gid_t gid)); __END_DECLS --- 42,51 ---- int forkpty __P((int *amaster, char *name, struct termios *termp, struct winsize *winp)); + #ifdef _SYS_TYPES_H_ + int _secure_path __P((const char *path, uid_t uid, gid_t gid)); + #endif char *uu_lockerr __P((int uu_lockresult)); int uu_lock __P((char *ttyname)); int uu_unlock __P((char *ttyname)); __END_DECLS --- Bruce From owner-cvs-lib Sun May 11 03:02:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA20981 for cvs-lib-outgoing; Sun, 11 May 1997 03:02:20 -0700 (PDT) Received: from dfw-ix10.ix.netcom.com (dfw-ix10.ix.netcom.com [206.214.98.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA20974; Sun, 11 May 1997 03:02:17 -0700 (PDT) Received: (from smap@localhost) by dfw-ix10.ix.netcom.com (8.8.4/8.8.4) id FAA23433; Sun, 11 May 1997 05:01:45 -0500 (CDT) Received: from sjx-ca13-13.ix.netcom.com(199.182.128.173) by dfw-ix10.ix.netcom.com via smap (V1.3) id sma023430; Sun May 11 05:01:37 1997 Received: (from asami@localhost) by blimp.mimi.com (8.8.5/8.6.9) id DAA01548; Sun, 11 May 1997 03:01:23 -0700 (PDT) Date: Sun, 11 May 1997 03:01:23 -0700 (PDT) Message-Id: <199705111001.DAA01548@blimp.mimi.com> To: bde@zeta.org.au CC: cvs-all@freebsd.org, CVS-committers@freebsd.org, cvs-lib@freebsd.org, davidn@freebsd.org In-reply-to: <199705110749.RAA21226@godzilla.zeta.org.au> (message from Bruce Evans on Sun, 11 May 1997 17:49:58 +1000) Subject: Re: cvs commit: src/lib/libutil Makefile libutil.h setproctitle.3 From: asami@vader.cs.berkeley.edu (Satoshi Asami) Sender: owner-cvs-lib@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * > Brings in login.conf, uucplock to 2.2 branch. * > Bumps sharedlib version to 2.2, in line with current (since they are * > now identical in both branches). * * The current version also needs to be bumped, since login_getpwclass * didn't exist yesterday. New versions of login and su stopped working * with old libraries here. We don't bump versions on -current unless it's relative to the previous release. (It's written in the handbook as "only bump one between releases.") Since the last release (2.2.1) went out with utils.2.1, -current's libutil stays at 2.2 until there is a change that requires a major bump (to utils.3.0) or a new release with utils.2.2 goes out, and there is another minor change (to utils.2.3). Satoshi From owner-cvs-lib Sun May 11 03:04:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA21088 for cvs-lib-outgoing; Sun, 11 May 1997 03:04:04 -0700 (PDT) Received: from dfw-ix11.ix.netcom.com (dfw-ix11.ix.netcom.com [206.214.98.11]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA21079; Sun, 11 May 1997 03:04:00 -0700 (PDT) Received: (from smap@localhost) by dfw-ix11.ix.netcom.com (8.8.4/8.8.4) id FAA16755; Sun, 11 May 1997 05:03:25 -0500 (CDT) Received: from sjx-ca13-13.ix.netcom.com(199.182.128.173) by dfw-ix11.ix.netcom.com via smap (V1.3) id sma016737; Sun May 11 05:03:04 1997 Received: (from asami@localhost) by blimp.mimi.com (8.8.5/8.6.9) id DAA01553; Sun, 11 May 1997 03:02:52 -0700 (PDT) Date: Sun, 11 May 1997 03:02:52 -0700 (PDT) Message-Id: <199705111002.DAA01553@blimp.mimi.com> To: davidn@FreeBSD.ORG CC: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG In-reply-to: <199705110831.BAA06370@freefall.freebsd.org> (message from David Nugent on Sun, 11 May 1997 01:31:44 -0700 (PDT)) Subject: Re: cvs commit: src/lib/libutil Makefile From: asami@vader.cs.berkeley.edu (Satoshi Asami) Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk * Modified: lib/libutil Makefile * Log: * Bump shared lib version to 2.3. Unless I'm mistaken, this should stay at 2.2. Please back this out ASAP (before people start building worlds with utils.so.2.3). Satoshi From owner-cvs-lib Mon May 12 03:00:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA08978 for cvs-lib-outgoing; Mon, 12 May 1997 03:00:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA08947; Mon, 12 May 1997 03:00:10 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA07564; Mon, 12 May 1997 02:59:26 -0700 (PDT) Date: Mon, 12 May 1997 02:59:26 -0700 (PDT) Message-Id: <199705120959.CAA07564@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 02:59:26 Modified: lib/libc/sys Makefile.inc Log: Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep() syscall functions. Revision Changes Path 1.31 +7 -3 src/lib/libc/sys/Makefile.inc From owner-cvs-lib Mon May 12 03:01:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09091 for cvs-lib-outgoing; Mon, 12 May 1997 03:01:55 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09042; Mon, 12 May 1997 03:01:32 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07617; Mon, 12 May 1997 03:00:47 -0700 (PDT) Date: Mon, 12 May 1997 03:00:47 -0700 (PDT) Message-Id: <199705121000.DAA07617@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 03:00:47 Modified: lib/libc_r/uthread pthread_private.h Log: remove prototype for nanosleep(), it's visible in unistd.h now. Revision Changes Path 1.5 +0 -1 src/lib/libc_r/uthread/pthread_private.h From owner-cvs-lib Mon May 12 03:03:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09210 for cvs-lib-outgoing; Mon, 12 May 1997 03:03:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09172; Mon, 12 May 1997 03:03:04 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07653; Mon, 12 May 1997 03:02:19 -0700 (PDT) Date: Mon, 12 May 1997 03:02:19 -0700 (PDT) Message-Id: <199705121002.DAA07653@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread uthread_nanosleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 03:02:19 Modified: lib/libc_r/uthread uthread_nanosleep.c Log: Add const in the thread version of nanosleep()'s args Revision Changes Path 1.4 +2 -1 src/lib/libc_r/uthread/uthread_nanosleep.c From owner-cvs-lib Mon May 12 03:05:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09283 for cvs-lib-outgoing; Mon, 12 May 1997 03:05:56 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09259; Mon, 12 May 1997 03:05:42 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07686; Mon, 12 May 1997 03:04:58 -0700 (PDT) Date: Mon, 12 May 1997 03:04:58 -0700 (PDT) Message-Id: <199705121004.DAA07686@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 03:04:58 Modified: lib/libc/gen sleep.c Log: Use nanosleep() in all cases, not just in the reentrant libc (_THREAD_SAFE) version. Revision Changes Path 1.5 +8 -69 src/lib/libc/gen/sleep.c From owner-cvs-lib Mon May 12 03:13:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09673 for cvs-lib-outgoing; Mon, 12 May 1997 03:13:46 -0700 (PDT) Received: from lsd.relcom.eu.net (root@lsd.relcom.eu.net [193.124.23.23]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09620; Mon, 12 May 1997 03:13:12 -0700 (PDT) Received: from localhost (ache@localhost [127.0.0.1]) by lsd.relcom.eu.net (8.8.5/8.8.5) with SMTP id OAA02321; Mon, 12 May 1997 14:10:44 +0400 (MSD) Date: Mon, 12 May 1997 14:10:43 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= X-Sender: ache@lsd.relcom.eu.net To: Peter Wemm cc: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/sys Makefile.inc In-Reply-To: <199705120959.CAA07564@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 12 May 1997, Peter Wemm wrote: > peter 97/05/12 02:59:26 > > Modified: lib/libc/sys Makefile.inc > Log: > Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep() > syscall functions. Please don't forget to add manpages... -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ From owner-cvs-lib Mon May 12 03:17:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA09822 for cvs-lib-outgoing; Mon, 12 May 1997 03:17:26 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA09812; Mon, 12 May 1997 03:16:50 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id SAA05871; Mon, 12 May 1997 18:16:38 +0800 (WST) Message-Id: <199705121016.SAA05871@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: Peter Wemm cc: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-reply-to: Your message of "Mon, 12 May 1997 03:04:58 MST." <199705121004.DAA07686@freefall.freebsd.org> Date: Mon, 12 May 1997 18:16:37 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Peter Wemm wrote: > peter 97/05/12 03:04:58 > > Modified: lib/libc/gen sleep.c > Log: > Use nanosleep() in all cases, not just in the reentrant libc (_THREAD_SAFE) > version. I was just about to do the same to usleep() when I found a problem. usleep() has a void return, so there's no way to indicate an interrupted usleep(). Both sleep and usleep were coded the same way, ie: sit in a while loop waiting for interrupts until the sigalarm happens. is usleep() supposed to wait the full time even if interrupted? or is the application supposed to do a gettimeofday() to determine how long really passed? -Peter From owner-cvs-lib Mon May 12 03:37:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA10778 for cvs-lib-outgoing; Mon, 12 May 1997 03:37:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10751; Mon, 12 May 1997 03:36:59 -0700 (PDT) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA08124; Mon, 12 May 1997 03:36:15 -0700 (PDT) Date: Mon, 12 May 1997 03:36:15 -0700 (PDT) Message-Id: <199705121036.DAA08124@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil libutil.h uucplock.3 uucplock.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 97/05/12 03:36:15 Modified: lib/libutil libutil.h uucplock.3 uucplock.c Log: Make uu_* const correct. Suggested by: joerg Revision Changes Path 1.8 +4 -4 src/lib/libutil/libutil.h 1.7 +4 -4 src/lib/libutil/uucplock.3 1.6 +4 -4 src/lib/libutil/uucplock.c From owner-cvs-lib Mon May 12 03:38:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA10833 for cvs-lib-outgoing; Mon, 12 May 1997 03:38:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10804; Mon, 12 May 1997 03:38:05 -0700 (PDT) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA08208; Mon, 12 May 1997 03:37:20 -0700 (PDT) Date: Mon, 12 May 1997 03:37:20 -0700 (PDT) Message-Id: <199705121037.DAA08208@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil libutil.h uucplock.3 uucplock.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 97/05/12 03:37:20 Branch: lib/libutil RELENG_2_2 Modified: lib/libutil libutil.h uucplock.3 uucplock.c Log: YAMFC: Make uu_* const correct. Suggested by: joerg Revision Changes Path 1.1.4.2 +4 -4 src/lib/libutil/libutil.h 1.5.2.2 +4 -4 src/lib/libutil/uucplock.3 1.5.2.1 +4 -4 src/lib/libutil/uucplock.c From owner-cvs-lib Mon May 12 05:14:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA16401 for cvs-lib-outgoing; Mon, 12 May 1997 05:14:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA16376; Mon, 12 May 1997 05:13:55 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA10189; Mon, 12 May 1997 05:13:10 -0700 (PDT) Date: Mon, 12 May 1997 05:13:10 -0700 (PDT) Message-Id: <199705121213.FAA10189@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys clock_gettime.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 05:13:10 Added: lib/libc/sys clock_gettime.2 Log: Man pages for clock_{get/set}time() and clock_getres(). Obtained from: kstailey@openbsd.org via OpenBSD sources From owner-cvs-lib Mon May 12 05:16:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA16541 for cvs-lib-outgoing; Mon, 12 May 1997 05:16:42 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA16513; Mon, 12 May 1997 05:16:20 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA10220; Mon, 12 May 1997 05:15:35 -0700 (PDT) Date: Mon, 12 May 1997 05:15:35 -0700 (PDT) Message-Id: <199705121215.FAA10220@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys nanosleep.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 05:15:35 Added: lib/libc/sys nanosleep.2 Log: manpage for nanosleep(2) Obtained from: NetBSD (I think jtc@netbsd.org wrote it) From owner-cvs-lib Mon May 12 05:19:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA16725 for cvs-lib-outgoing; Mon, 12 May 1997 05:19:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA16699; Mon, 12 May 1997 05:18:59 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA10252; Mon, 12 May 1997 05:18:14 -0700 (PDT) Date: Mon, 12 May 1997 05:18:14 -0700 (PDT) Message-Id: <199705121218.FAA10252@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/12 05:18:14 Modified: lib/libc/sys Makefile.inc Log: Add clock_* and nanosleep manpages and links. Revision Changes Path 1.32 +5 -2 src/lib/libc/sys/Makefile.inc From owner-cvs-lib Mon May 12 05:42:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA27669 for cvs-lib-outgoing; Mon, 12 May 1997 05:42:06 -0700 (PDT) Received: from hda.hda.com (hda-bicnet.bicnet.net [207.198.1.121]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA25871; Mon, 12 May 1997 05:40:25 -0700 (PDT) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id IAA01906; Mon, 12 May 1997 08:38:39 -0400 (EDT) From: Peter Dufault Message-Id: <199705121238.IAA01906@hda.hda.com> Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h In-Reply-To: <199705121000.DAA07617@freefall.freebsd.org> from Peter Wemm at "May 12, 97 03:00:47 am" To: peter@FreeBSD.ORG (Peter Wemm) Date: Mon, 12 May 1997 08:38:38 -0400 (EDT) Cc: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > peter 97/05/12 03:00:47 > > Modified: lib/libc_r/uthread pthread_private.h > Log: > remove prototype for nanosleep(), it's visible in unistd.h now. Nanosleep goes in time.h. Check the POSIX spec. I built world yesterday with my headers, I'm going to commit them today without building world again because I don't think I'm ever going to catch up. Sorry in advance about any breakage. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 From owner-cvs-lib Tue May 13 01:54:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA10318 for cvs-lib-outgoing; Tue, 13 May 1997 01:54:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA10264; Tue, 13 May 1997 01:52:41 -0700 (PDT) From: Satoshi Asami Received: (from asami@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA15806; Tue, 13 May 1997 01:51:49 -0700 (PDT) Date: Tue, 13 May 1997 01:51:49 -0700 (PDT) Message-Id: <199705130851.BAA15806@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil Makefile Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 97/05/13 01:51:49 Modified: lib/libutil Makefile Log: Back out previous revision. Shlib version numbers are supposed to be bumped only 0.1 or 1.0 between releases. (See handbook.) Note that if you have built world in -current in the last 48 hours or so, you should manually remove /usr/lib/libutil.so.2.3 before rebuilding world to cleanse your system. Revision Changes Path 1.13 +1 -1 src/lib/libutil/Makefile From owner-cvs-lib Tue May 13 04:22:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA15377 for cvs-lib-outgoing; Tue, 13 May 1997 04:22:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA15308; Tue, 13 May 1997 04:20:20 -0700 (PDT) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA18579; Tue, 13 May 1997 04:19:27 -0700 (PDT) Date: Tue, 13 May 1997 04:19:27 -0700 (PDT) Message-Id: <199705131119.EAA18579@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/locale table.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/05/13 04:19:26 Modified: lib/libc/locale table.c Log: #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCII back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization. Revision Changes Path 1.10 +4 -1 src/lib/libc/locale/table.c From owner-cvs-lib Tue May 13 13:25:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA11454 for cvs-lib-outgoing; Tue, 13 May 1997 13:25:58 -0700 (PDT) Received: from burka.rdy.com (dima@burka.rdy.com [205.149.163.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA11447; Tue, 13 May 1997 13:25:48 -0700 (PDT) Received: by burka.rdy.com id NAA15897; (8.8.5/RDY) Tue, 13 May 1997 13:25:43 -0700 (PDT) Message-Id: <199705132025.NAA15897@burka.rdy.com> Subject: Re: cvs commit: src/lib/libc/locale table.c In-Reply-To: <199705131119.EAA18579@freefall.freebsd.org> from "Andrey A. Chernov" at "May 13, 97 04:19:27 am" To: ache@FreeBSD.ORG (Andrey A. Chernov) Date: Tue, 13 May 1997 13:25:42 -0700 (PDT) Cc: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG X-Class: Fast Organization: HackerDome Reply-To: dima@best.net From: dima@best.net (Dima Ruban) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Andrey A. Chernov writes: > ache 97/05/13 04:19:26 > > Modified: lib/libc/locale table.c > Log: > #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCII > back as designed in *BSD > > Also it not violates current standards but > > 1) No other Unixes have this feature > > 2) It broke Kerberos5 (isprint) and God knows what else > (not all vendors will agree to treat FreeBSD as special case for support > since (1)) > > 2) Give false localization sense (programs mimic to be 8859-1 > localized) which prevents true localization. Thank you. > > Revision Changes Path > 1.10 +4 -1 src/lib/libc/locale/table.c > -- dima From owner-cvs-lib Tue May 13 16:55:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA25825 for cvs-lib-outgoing; Tue, 13 May 1997 16:55:59 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA25763; Tue, 13 May 1997 16:55:20 -0700 (PDT) From: Alex Nash Received: (from alex@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA02563; Tue, 13 May 1997 16:54:23 -0700 (PDT) Date: Tue, 13 May 1997 16:54:23 -0700 (PDT) Message-Id: <199705132354.QAA02563@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread uthread_init.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk alex 97/05/13 16:54:22 Modified: lib/libc_r/uthread uthread_init.c Log: Fixed overallocation of _thread_fd_table. PR: 3494 Submitted by: Steve Bauer Revision Changes Path 1.5 +1 -1 src/lib/libc_r/uthread/uthread_init.c From owner-cvs-lib Tue May 13 16:58:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA26120 for cvs-lib-outgoing; Tue, 13 May 1997 16:58:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA26056; Tue, 13 May 1997 16:58:46 -0700 (PDT) From: Alex Nash Received: (from alex@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA02621; Tue, 13 May 1997 16:57:49 -0700 (PDT) Date: Tue, 13 May 1997 16:57:49 -0700 (PDT) Message-Id: <199705132357.QAA02621@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread uthread_init.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk alex 97/05/13 16:57:49 Modified: lib/libc_r/uthread uthread_init.c Log: YAMFC: overallocation of _thread_fd_table from rev 1.5. Revision Changes Path 1.3.2.1 +1 -1 src/lib/libc_r/uthread/uthread_init.c From owner-cvs-lib Tue May 13 17:12:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA27181 for cvs-lib-outgoing; Tue, 13 May 1997 17:12:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27089; Tue, 13 May 1997 17:12:00 -0700 (PDT) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA02735; Tue, 13 May 1997 17:11:03 -0700 (PDT) Date: Tue, 13 May 1997 17:11:03 -0700 (PDT) Message-Id: <199705140011.RAA02735@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/locale table.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/05/13 17:11:03 Modified: lib/libc/locale table.c Log: Completely remove #ifdefed out 8859-1 extension, I found it break POSIX, C locale definition, see LC_CTYPE pre-defined table there Revision Changes Path 1.11 +1 -39 src/lib/libc/locale/table.c From owner-cvs-lib Tue May 13 17:14:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA27293 for cvs-lib-outgoing; Tue, 13 May 1997 17:14:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27266; Tue, 13 May 1997 17:14:13 -0700 (PDT) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA02817; Tue, 13 May 1997 17:13:15 -0700 (PDT) Date: Tue, 13 May 1997 17:13:15 -0700 (PDT) Message-Id: <199705140013.RAA02817@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/locale table.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/05/13 17:13:15 Branch: lib/libc/locale RELENG_2_2 Modified: lib/libc/locale table.c Log: Remove 8859-1 extension of C locale, it breaks POSIX Revision Changes Path 1.6.2.2 +1 -36 src/lib/libc/locale/table.c From owner-cvs-lib Tue May 13 17:19:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA27579 for cvs-lib-outgoing; Tue, 13 May 1997 17:19:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27545; Tue, 13 May 1997 17:18:48 -0700 (PDT) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA02891; Tue, 13 May 1997 17:17:51 -0700 (PDT) Date: Tue, 13 May 1997 17:17:51 -0700 (PDT) Message-Id: <199705140017.RAA02891@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/nls msgcat.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/05/13 17:17:51 Branch: lib/libc/nls RELENG_2_2 Modified: lib/libc/nls msgcat.c Log: Merge memory leak fixes from -current Revision Changes Path 1.5.2.1 +52 -18 src/lib/libc/nls/msgcat.c From owner-cvs-lib Wed May 14 23:09:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA01984 for cvs-lib-outgoing; Wed, 14 May 1997 23:09:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA01868; Wed, 14 May 1997 23:07:40 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA17059; Wed, 14 May 1997 23:06:33 -0700 (PDT) Date: Wed, 14 May 1997 23:06:33 -0700 (PDT) Message-Id: <199705150606.XAA17059@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil _secure_path.c _secure_path.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/14 23:06:32 Modified: lib/libutil _secure_path.c _secure_path.3 Log: For non-root uids, consider root-owned files also 'secure' unless otherwise disqualified. Revision Changes Path 1.2 +2 -2 src/lib/libutil/_secure_path.c 1.2 +2 -2 src/lib/libutil/_secure_path.3 From owner-cvs-lib Wed May 14 23:11:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA02084 for cvs-lib-outgoing; Wed, 14 May 1997 23:11:40 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA01999; Wed, 14 May 1997 23:09:53 -0700 (PDT) From: David Nugent Received: (from davidn@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA17118; Wed, 14 May 1997 23:08:45 -0700 (PDT) Date: Wed, 14 May 1997 23:08:45 -0700 (PDT) Message-Id: <199705150608.XAA17118@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libutil _secure_path.c _secure_path.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidn 97/05/14 23:08:45 Branch: lib/libutil RELENG_2_2 Modified: lib/libutil _secure_path.c _secure_path.3 Log: YAMFC: Consider root-owned files 'secure' for non-root uids. Revision Changes Path 1.1.2.1 +2 -2 src/lib/libutil/_secure_path.c 1.1.2.1 +2 -2 src/lib/libutil/_secure_path.3 From owner-cvs-lib Sat May 17 01:36:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA14857 for cvs-lib-outgoing; Sat, 17 May 1997 01:36:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA14691; Sat, 17 May 1997 01:34:09 -0700 (PDT) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA04063; Sat, 17 May 1997 01:32:43 -0700 (PDT) Date: Sat, 17 May 1997 01:32:43 -0700 (PDT) Message-Id: <199705170832.BAA04063@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/05/17 01:32:43 PDT Modified files: lib/libc/gen sleep.c Log: Temporarily restore old (itimer) sleep variant because new one (nanosleep) breaks Apache httpd badly: his childs died quickly after number of requests (SIGPIPE). To reproduce this bug start gdb /usr/local/sbin/httpd run -X and make some bunch of concurent requests (load the server pages from 3 different places f.e.) After short time httpd dies via SIGPIPE. It never dies with old sleep.c In real life it looks like lots of broken images on the pages or missing pages. Lynx says about Network read error, etc. It seems something wrong in nanosleep signal handling. Revision Changes Path 1.6 +69 -8 src/lib/libc/gen/sleep.c From owner-cvs-lib Sat May 17 04:42:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA21200 for cvs-lib-outgoing; Sat, 17 May 1997 04:42:53 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA21174; Sat, 17 May 1997 04:42:26 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA07406; Sat, 17 May 1997 04:41:00 -0700 (PDT) Date: Sat, 17 May 1997 04:41:00 -0700 (PDT) Message-Id: <199705171141.EAA07406@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/05/17 04:40:59 PDT Modified files: lib/libc/gen sleep.c usleep.c Log: Allow conditional use (add -DUSE_NANOSLEEP) to CFLAGS of nanosleep() for the backend of sleep(3) and usleep(3). It's off by default until the problem is fixed. Revision Changes Path 1.7 +19 -20 src/lib/libc/gen/sleep.c 1.6 +15 -15 src/lib/libc/gen/usleep.c From owner-cvs-lib Sat May 17 05:04:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA21754 for cvs-lib-outgoing; Sat, 17 May 1997 05:04:13 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA21734; Sat, 17 May 1997 05:04:00 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id UAA22306; Sat, 17 May 1997 20:03:52 +0800 (WST) Message-Id: <199705171203.UAA22306@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: "Andrey A. Chernov" cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-reply-to: Your message of "Sat, 17 May 1997 01:32:43 MST." <199705170832.BAA04063@freefall.freebsd.org> Date: Sat, 17 May 1997 20:03:50 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk "Andrey A. Chernov" wrote: > ache 1997/05/17 01:32:43 PDT > > Modified files: > lib/libc/gen sleep.c > Log: > Temporarily restore old (itimer) sleep variant because new one > (nanosleep) breaks Apache httpd badly: his childs died quickly after > number of requests (SIGPIPE). To reproduce this bug start > gdb /usr/local/sbin/httpd > run -X > > and make some bunch of concurent requests (load the server pages > from 3 different places f.e.) > After short time httpd dies via SIGPIPE. It never dies with old sleep.c > > In real life it looks like lots of broken images on the pages or missing > pages. Lynx says about Network read error, etc. > It seems something wrong in nanosleep signal handling. Are you sure that this is sleep() related? I have not been able to reproduce this here [yet]... Do you have rfc1413 (ident) lookups turned on? There is some highly suspicious handling of SIGALRM in there.. In fact, it returns with it's own SIGALRM handler active still.. This is definately a bug!! Cheers, -Peter From owner-cvs-lib Sat May 17 08:42:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA28415 for cvs-lib-outgoing; Sat, 17 May 1997 08:42:57 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA28391; Sat, 17 May 1997 08:42:37 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA08896; Sat, 17 May 1997 08:41:09 -0700 (PDT) Date: Sat, 17 May 1997 08:41:09 -0700 (PDT) Message-Id: <199705171541.IAA08896@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/05/17 08:41:09 PDT Modified files: lib/libc/gen sleep.c Log: round-up non-zero nanoseconds in #ifdef'ed code. Revision Changes Path 1.8 +2 -0 src/lib/libc/gen/sleep.c From owner-cvs-lib Sat May 17 08:44:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA28482 for cvs-lib-outgoing; Sat, 17 May 1997 08:44:44 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA28454; Sat, 17 May 1997 08:44:26 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA08928; Sat, 17 May 1997 08:42:58 -0700 (PDT) Date: Sat, 17 May 1997 08:42:58 -0700 (PDT) Message-Id: <199705171542.IAA08928@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/05/17 08:42:58 PDT Modified files: lib/libc/gen usleep.c Log: if nanosleep returns too early, loop. usleep() does not have a return value, it appears as though the semantics of usleep are that it doesn't return early. (only in the nanosleep code - the setitimer code does this already) Revision Changes Path 1.7 +7 -2 src/lib/libc/gen/usleep.c From owner-cvs-lib Sat May 17 14:22:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA12376 for cvs-lib-outgoing; Sat, 17 May 1997 14:22:50 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA12371; Sat, 17 May 1997 14:22:45 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.5/8.8.5) id BAA00641; Sun, 18 May 1997 01:22:12 +0400 (MSD) Date: Sun, 18 May 1997 01:22:09 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Peter Wemm cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-Reply-To: <199705171203.UAA22306@spinner.DIALix.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 17 May 1997, Peter Wemm wrote: > Are you sure that this is sleep() related? I have not been able > to reproduce this here [yet]... Yes, I am 100% shure. I have 6000 requests per day WWW site on -current to test this. Child dies and broken pages stops immediately after sleep replaced with old variant and begins again immediately when nanosleep used. I'll try to dig out more. If I don't find anything more, I can give you access to my -current site to allow you to see and test it. > Do you have rfc1413 (ident) lookups turned on? There is some highly > suspicious handling of SIGALRM in there.. In fact, it returns with it's > own SIGALRM handler active still.. This is definately a bug!! Of course not. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ From owner-cvs-lib Sat May 17 15:10:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA17205 for cvs-lib-outgoing; Sat, 17 May 1997 15:10:44 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA17173; Sat, 17 May 1997 15:10:15 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.5/8.8.5) id CAA00843; Sun, 18 May 1997 02:10:00 +0400 (MSD) Date: Sun, 18 May 1997 02:09:57 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Peter Wemm cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-Reply-To: <199705171541.IAA08896@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 17 May 1997, Peter Wemm wrote: > peter 1997/05/17 08:41:09 PDT > > Modified files: > lib/libc/gen sleep.c > Log: > round-up non-zero nanoseconds in #ifdef'ed code. BTW, it seems I find possible reason (but not test it yet). It looks like old sleep stops only by SIGALRM (sigpause in while loop) but new one stops by _any_ signal, isn't it? -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ From owner-cvs-lib Sat May 17 18:31:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA23935 for cvs-lib-outgoing; Sat, 17 May 1997 18:31:50 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA23892; Sat, 17 May 1997 18:31:22 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id LAA17474; Sun, 18 May 1997 11:29:42 +1000 Date: Sun, 18 May 1997 11:29:42 +1000 From: Bruce Evans Message-Id: <199705180129.LAA17474@godzilla.zeta.org.au> To: ache@nagual.pp.ru, peter@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >BTW, it seems I find possible reason (but not test it yet). It looks like >old sleep stops only by SIGALRM (sigpause in while loop) but new one stops >by _any_ signal, isn't it? One difference is that non-defaulted SIGALRMs now kill the process instead of terminating the sleep. This breaks sleep(1). POSIX.1 may allow either behaviour (the behaviour is mostly unspecified so that BAD historiclal implementations using alarm() are standard). In particular, if SIGALRM is not generated be a previous call to alarm() and SIGALRM is not being ignored or blocked, then it is explicitly unspecified whether the signal has any effect other than causing sleep() to return. The case of SIGALRMs generated by alarm()s seems to be implicitly unspecified! Bruce From owner-cvs-lib Sat May 17 20:06:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA01935 for cvs-lib-outgoing; Sat, 17 May 1997 20:06:28 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA01907; Sat, 17 May 1997 20:06:09 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id NAA20270; Sun, 18 May 1997 13:01:28 +1000 Date: Sun, 18 May 1997 13:01:28 +1000 From: Bruce Evans Message-Id: <199705180301.NAA20270@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified files: > lib/libc/gen usleep.c > Log: > if nanosleep returns too early, loop. usleep() does not have a return > value, it appears as though the semantics of usleep are that it doesn't > return early. (only in the nanosleep code - the setitimer code does this > already) Where do those semantics appear? The old behaviour was to return early. The man page said otherwise, but so does the BSD4.4-Lite man page for sleep(3). usleep.3 is a clone of sleep.3 in in BSD4.4-Lite. Someone fixed the worst bugs in sleep.3 but didn't change usleep.3. The actual behaviour hasn't changed since 386BSD. Bruce From owner-cvs-lib Sat May 17 23:11:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA12648 for cvs-lib-outgoing; Sat, 17 May 1997 23:11:27 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA12637; Sat, 17 May 1997 23:11:11 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id OAA04447; Sun, 18 May 1997 14:10:47 +0800 (WST) Message-Id: <199705180610.OAA04447@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: Bruce Evans cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen usleep.c In-reply-to: Your message of "Sun, 18 May 1997 13:01:28 +1000." <199705180301.NAA20270@godzilla.zeta.org.au> Date: Sun, 18 May 1997 14:10:45 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: > Modified files: > lib/libc/gen usleep.c > Log: > if nanosleep returns too early, loop. usleep() does not have a return > value, it appears as though the semantics of usleep are that it doesn't > return early. (only in the nanosleep code - the setitimer code does this > already) > > Where do those semantics appear? The old behaviour was to return > early. The man page said otherwise, but so does the BSD4.4-Lite man ^^^^^ Are you sure of that? Both sleep() and usleep() do a 'while (!ringring) sigpause(...)'.. To my reading, it won't return early ever... The sleep(3) implementation was the same, it didn't ever return early either as far as I can see. There's no way out except for a longjump from within some other signal handler. My observations of the svr4 libc suggest that it uses alarm() and a sigpause() once and doesn't sit in a while loop.. So, sleep(3) will return early. The svr4 version of usleep() (presumably based on sunos 4.x code) appears to use setitimer and do the same while (!finished) sigpause(..). > page for sleep(3). usleep.3 is a clone of sleep.3 in in BSD4.4-Lite. > Someone fixed the worst bugs in sleep.3 but didn't change usleep.3. > The actual behaviour hasn't changed since 386BSD. It seems to me that somebody cloned the usleep(3) code to replace sleep(3), presumably this was csrg, but I couldn't guess how far back. > Bruce Cheers, -Peter From owner-cvs-lib Sat May 17 23:21:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA12977 for cvs-lib-outgoing; Sat, 17 May 1997 23:21:47 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA12967; Sat, 17 May 1997 23:21:20 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id OAA04512; Sun, 18 May 1997 14:20:12 +0800 (WST) Message-Id: <199705180620.OAA04512@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: Bruce Evans cc: ache@nagual.pp.ru, peter@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-reply-to: Your message of "Sun, 18 May 1997 11:29:42 +1000." <199705180129.LAA17474@godzilla.zeta.org.au> Date: Sun, 18 May 1997 14:20:10 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: > >BTW, it seems I find possible reason (but not test it yet). It looks like > >old sleep stops only by SIGALRM (sigpause in while loop) but new one stops > >by _any_ signal, isn't it? It's supposed to stop on any trapped signal with EINTR as near as I can tell. > One difference is that non-defaulted SIGALRMs now kill the process > instead of terminating the sleep. This breaks sleep(1). POSIX.1 may > allow either behaviour (the behaviour is mostly unspecified so that BAD > historiclal implementations using alarm() are standard). In particular, > if SIGALRM is not generated be a previous call to alarm() and SIGALRM is > not being ignored or blocked, then it is explicitly unspecified whether > the signal has any effect other than causing sleep() to return. The case > of SIGALRMs generated by alarm()s seems to be implicitly unspecified! Hmm. Perhaps install a temporary dummy SIGALRM handler in the sleep.c stub so that it doesn't die if there isn't one. The old setitimer way doesn't mess with alarm(2), using nanosleep() wont change that. > Bruce The SVR4.0 man page for sleep(3c) says: .. The routine is implemented by setting an alarm signal and pausing until it (or some other signal) occurs. The previous state of the alarm signal is saved and restored. The calling program may have set up an alarm signal before calling sleep. [..guff about adjusting alarm(2)..] .. ie: traditional sleep(3) behavior is that any signal interrupts the sleep. The "principal of least suprise" probably suggests that we should prevent any unhandled sigalarms from aborting the process by absorbing it within the sleep->nanosleep wrapper. Cheers, -Peter From owner-cvs-lib Sat May 17 23:39:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA13650 for cvs-lib-outgoing; Sat, 17 May 1997 23:39:49 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA13632; Sat, 17 May 1997 23:39:18 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.5/8.8.5) id KAA00638; Sun, 18 May 1997 10:39:16 +0400 (MSD) Date: Sun, 18 May 1997 10:39:14 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Bruce Evans cc: peter@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-Reply-To: <199705180129.LAA17474@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 18 May 1997, Bruce Evans wrote: > One difference is that non-defaulted SIGALRMs now kill the process > instead of terminating the sleep. This breaks sleep(1). POSIX.1 may > allow either behaviour (the behaviour is mostly unspecified so that BAD > historiclal implementations using alarm() are standard). In particular, > if SIGALRM is not generated be a previous call to alarm() and SIGALRM is > not being ignored or blocked, then it is explicitly unspecified whether > the signal has any effect other than causing sleep() to return. The case > of SIGALRMs generated by alarm()s seems to be implicitly unspecified! Yes. It is easy way to see this bug: sleep 1000 & kill -ALRM %1 old variant says: [1] Terminated New one says: [1] Alarm clock (don't forget to re-buid sleep(1), of course) But it is not the only difference. As I say, old sleep restarted again after signal != SIGALRM (f.e. SIGCHLD), but new sleep terminates! I suspect this thing break Apache. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ From owner-cvs-lib Sat May 17 23:54:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA14277 for cvs-lib-outgoing; Sat, 17 May 1997 23:54:13 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA14265; Sat, 17 May 1997 23:53:51 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id OAA04790; Sun, 18 May 1997 14:52:54 +0800 (WST) Message-Id: <199705180652.OAA04790@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= cc: Bruce Evans , peter@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-reply-to: Your message of "Sun, 18 May 1997 10:39:14 +0400." Date: Sun, 18 May 1997 14:52:53 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= wrote: > But it is not the only difference. As I say, old sleep restarted again > after signal != SIGALRM (f.e. SIGCHLD), but new sleep terminates! I > suspect this thing break Apache. Apache doesn't fail with non-BSD systems that sleep doesn't restart after non-ALRM signals, eg: sunos, solaris, hpux, digital unix, etc.. Apache doesn't use signals internally other than SIGALRM anyway. (well, the user can send SIGHUP and SIGTERM, but that's an exception, not the normal case during operation) eg: from Digital Unix: If the sleep() function returns because the requested time has elapsed, it returns 0 (zero). If the sleep() function returns because it caught a signal, the function returns the number of seconds remaining in the suspen- sion. I noticed that apache is having a lot of trouble with fin_wait_2 when using keepalive connections to unix netscape3 and doesn't run very well with -X when large files are transferred (more than socket buffer I suspect). I found a mention of this in the docs where it explicitly listed Netscape on FreeBSD as one known rogues that don't do client keepalive properly. Cheers, -Peter