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);
                }
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to