Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zoneadmd/zfd.c
          +++ new/usr/src/cmd/zoneadmd/zfd.c
↓ open down ↓ 1200 lines elided ↑ open up ↑
1201 1201          int len;
1202 1202          char ibuf[BUFSIZ + 1];
1203 1203  
1204 1204          if (!shutting_down && mode->zmode_gzlogging)
1205 1205                  open_logfile();
1206 1206  
1207 1207          /*
1208 1208           * This thread should receive SIGHUP so that it can close the log
1209 1209           * file, and reopen it, during log rotation.
1210 1210           */
1211      -        sigset(SIGHUP, hup_handler);
     1211 +        (void) sigset(SIGHUP, hup_handler);
1212 1212          (void) sigfillset(&blockset);
1213 1213          (void) sigdelset(&blockset, SIGHUP);
1214 1214          (void) thr_sigsetmask(SIG_BLOCK, &blockset, NULL);
1215 1215  
1216 1216          if (!shutting_down) {
1217 1217                  if (pipe(eventstream) != 0) {
1218 1218                          zerror(zlogp, B_TRUE, "failed to open logger control "
1219 1219                              "pipe");
1220 1220                          return;
1221 1221                  }
↓ open down ↓ 155 lines elided ↑ open up ↑
1377 1377                          if (*p == '\0')
1378 1378                                  log_rot_sz = (size_t)lval;
1379 1379                  }
1380 1380          }
1381 1381          (void) zonecfg_endattrent(handle);
1382 1382  
1383 1383  done:
1384 1384          zonecfg_fini_handle(handle);
1385 1385  }
1386 1386  
     1387 +/* ARGSUSED -- "id" might be used in the future. */
1387 1388  void
1388 1389  create_log_thread(zlog_t *logp, zoneid_t id)
1389 1390  {
1390 1391          int res;
1391 1392  
1392 1393          shutting_down = 0;
1393 1394          zlogp = logp;
1394 1395  
1395 1396          get_mode_logmax(&mode);
1396 1397          if (mode.zmode_n_stddevs == 0)
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX