Print this page
10115 ses topo module needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/topo/modules/common/ses/ses.c
          +++ new/usr/src/lib/fm/topo/modules/common/ses/ses.c
↓ open down ↓ 470 lines elided ↑ open up ↑
 471  471          ctid_t ctid;
 472  472          struct pollfd fds;
 473  473          int pollret;
 474  474          sigset_t sigset;
 475  475  
 476  476          ses_ct_print("start contract event thread");
 477  477          efd = open64(CTFS_ROOT "/device/pbundle", O_RDONLY);
 478  478          fds.fd = efd;
 479  479          fds.events = POLLIN;
 480  480          fds.revents = 0;
 481      -        sigaddset(&sigset, sesthread.thr_sig);
 482      -        pthread_sigmask(SIG_UNBLOCK, &sigset, NULL);
      481 +        (void) sigaddset(&sigset, sesthread.thr_sig);
      482 +        (void) pthread_sigmask(SIG_UNBLOCK, &sigset, NULL);
 483  483          for (;;) {
 484  484                  /* check if we've been asked to exit */
 485  485                  (void) pthread_mutex_lock(&sesthread.mt);
 486  486                  if (sesthread.doexit) {
 487  487                          (void) pthread_mutex_unlock(&sesthread.mt);
 488  488                          break;
 489  489                  }
 490  490                  (void) pthread_mutex_unlock(&sesthread.mt);
 491  491  
 492  492                  /* poll until an event arrives */
↓ open down ↓ 3198 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX