Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nscd/nscd_smfmonitor.c
          +++ new/usr/src/cmd/nscd/nscd_smfmonitor.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2018 Joyent, Inc.
  24   26   */
  25   27  
  26   28  #include <stdlib.h>
  27   29  #include <libscf.h>
  28   30  #include <string.h>
  29   31  #include "nscd_switch.h"
  30   32  #include "nscd_log.h"
  31   33  #include "nscd_door.h"
  32   34  
  33   35  extern int      _whoami;
↓ open down ↓ 66 lines elided ↑ open up ↑
 100  102  }
 101  103  
 102  104  /* ARGSUSED */
 103  105  static void *
 104  106  set_smf_state(void *arg)
 105  107  {
 106  108  
 107  109          int     i;
 108  110          int     st;
 109  111  
      112 +        (void) thr_setname(thr_self(), "set_smf_state");
      113 +
 110  114          /*
 111  115           * the forker nscd needs not monitor the state
 112  116           * of the client services
 113  117           */
 114  118          if (_whoami == NSCD_FORKER)
 115  119                  thr_exit(0);
 116  120  
 117  121          /*CONSTCOND*/
 118  122          while (1) {
 119  123  
↓ open down ↓ 91 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX