From owner-cvs-all Tue Aug 7 14:47:22 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id B88A337B403; Tue, 7 Aug 2001 14:47:12 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id XAA08110; Tue, 7 Aug 2001 23:46:58 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bruce Evans Cc: Warner Losh , Garrett Wollman , Kris Kennaway , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys sigaction.2 References: From: Dag-Erling Smorgrav Date: 07 Aug 2001 23:46:57 +0200 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans writes: > On Wed, 25 Jul 2001, Warner Losh wrote: > > Strcpy isn't atomic. So if the source string changes in a signal > > handler, unpredictable results will ensue. > That doesn't make it signal-unsafe any more than the possibility of > open(2)'s string arg changing makes open(2) signal-unsafe. No, but open(2) is uninterruptible while strcpy(3) isn't. If a signal occurs while strcpy(3) is running, and it modifies the source string, the consequences may be very unpleasant. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message