Print this page
OS-3820 lxbrand ptrace(2): the next generation
OS-3685 lxbrand PTRACE_O_TRACEFORK race condition
OS-3834 lxbrand 64-bit strace(1) reports 64-bit process as using x32 ABI
OS-3794 lxbrand panic on init signal death
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Bryan Cantrill <bryan@joyent.com>
        
*** 23,33 ****
   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   */
  
  /*
!  * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
   */
  
  #include <sys/types.h>
  #include <sys/uio.h>
  #include <sys/param.h>
--- 23,33 ----
   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   */
  
  /*
!  * Copyright 2015, Joyent, Inc.
   */
  
  #include <sys/types.h>
  #include <sys/uio.h>
  #include <sys/param.h>
*** 1479,1489 ****
                          /* Set signaled sleeping/waiting lwp running */
                          setrun_locked(t);
                  } else if (t->t_state == TS_STOPPED && sig == SIGKILL) {
                          /* If SIGKILL, set stopped lwp running */
                          p->p_stopsig = 0;
!                         t->t_schedflag |= TS_XSTART | TS_PSTART;
                          t->t_dtrace_stop = 0;
                          setrun_locked(t);
                  }
                  t->t_sig_check = 1;     /* so ISSIG will be done */
                  thread_unlock(t);
--- 1479,1489 ----
                          /* Set signaled sleeping/waiting lwp running */
                          setrun_locked(t);
                  } else if (t->t_state == TS_STOPPED && sig == SIGKILL) {
                          /* If SIGKILL, set stopped lwp running */
                          p->p_stopsig = 0;
!                         t->t_schedflag |= TS_XSTART | TS_PSTART | TS_BSTART;
                          t->t_dtrace_stop = 0;
                          setrun_locked(t);
                  }
                  t->t_sig_check = 1;     /* so ISSIG will be done */
                  thread_unlock(t);