svn commit: r287300 - head/lib/libc/gen

Konstantin Belousov kib at FreeBSD.org
Sun Aug 30 04:46:45 UTC 2015


Author: kib
Date: Sun Aug 30 04:46:44 2015
New Revision: 287300
URL: https://svnweb.freebsd.org/changeset/base/287300

Log:
  Fix a mistake in r287292.  Despite correctly stating intent in the
  comment above, POSIX_SPAWN_SETSIGMASK and POSIX_SPAWN_SETSIGDEF
  handlers used libthr interposed functions instead of syscalls.
  
  Noted by:	jilles
  Sponsored by:	The FreeBSD Foundation
  MFC after:	6 days

Modified:
  head/lib/libc/gen/posix_spawn.c

Modified: head/lib/libc/gen/posix_spawn.c
==============================================================================
--- head/lib/libc/gen/posix_spawn.c	Sun Aug 30 01:39:59 2015	(r287299)
+++ head/lib/libc/gen/posix_spawn.c	Sun Aug 30 04:46:44 2015	(r287300)
@@ -123,13 +123,13 @@ process_spawnattr(const posix_spawnattr_
 	 * Use unwrapped syscall, libthr is in undefined state after vfork().
 	 */
 	if (sa->sa_flags & POSIX_SPAWN_SETSIGMASK) {
-		__libc_sigprocmask(SIG_SETMASK, &sa->sa_sigmask, NULL);
+		__sys_sigprocmask(SIG_SETMASK, &sa->sa_sigmask, NULL);
 	}
 
 	if (sa->sa_flags & POSIX_SPAWN_SETSIGDEF) {
 		for (i = 1; i <= _SIG_MAXSIG; i++) {
 			if (sigismember(&sa->sa_sigdefault, i))
-				if (__libc_sigaction(i, &sigact, NULL) != 0)
+				if (__sys_sigaction(i, &sigact, NULL) != 0)
 					return (errno);
 		}
 	}


More information about the svn-src-head mailing list