Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 08:39:53 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Kris Kennaway <kris@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/sys sigaction.2 
Message-ID:  <200107251439.f6PEdro07401@harmony.village.org>
In-Reply-To: Your message of "Wed, 25 Jul 2001 19:05:17 %2B1000." <Pine.BSF.4.21.0107251900590.48176-100000@besplex.bde.org> 
References:  <Pine.BSF.4.21.0107251900590.48176-100000@besplex.bde.org>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.21.0107251900590.48176-100000@besplex.bde.org> Bruce Evans writes:
: > Are these functions officially signal-safe, or just signal-safe in our
: > particular implementation?
: 
: Only in our implementation.  It's hard to see how strcpy() could be
: signal-unsafe, but POSIX doesn't require it to be signal-safe.

Strcpy isn't atomic.  So if the source string changes in a signal
handler, unpredictable results will ensue. 

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107251439.f6PEdro07401>