Lines Matching refs:NULL

110 static fdnode *oneshot_fdn = NULL;
204 sigaction(SIGPIPE, &act, NULL); in server_main_setup_signals()
209 sigaction(SIGBUS, &act, NULL); in server_main_setup_signals()
224 sigaction(SIGINT, &act, NULL); in server_main_setup_signals()
225 sigaction(SIGTERM, &act, NULL); in server_main_setup_signals()
226 sigaction(SIGHUP, &act, NULL); in server_main_setup_signals()
227 sigaction(SIGALRM, &act, NULL); in server_main_setup_signals()
228 sigaction(SIGUSR1, &act, NULL); in server_main_setup_signals()
232 sigaction(SIGCHLD, &act, NULL); in server_main_setup_signals()
316 const unix_time64_t new_ts = TIME64_CAST(time(NULL)); in server_epoch_secs()
349 srv->startup_ts = log_epoch_secs = TIME64_CAST(time(NULL)); in server_init()
372 srv->errh = log_set_global_errh(NULL, 0); in server_init()
397 oneshot_fdn = NULL; in server_free()
419 if (srv->errh != log_set_global_errh(NULL, 0)) in server_free()
451 server_socket *srv_socket, *srv_socket_wild = NULL; in server_oneshot_getsock()
457 if (NULL != srv_socket_wild) continue; in server_oneshot_getsock()
463 if (NULL != srv_socket_wild) { in server_oneshot_getsock()
469 return NULL; in server_oneshot_getsock()
514 handler_t rc = (fdn && (fdevent_handler)NULL != fdn->handler) in server_oneshot_handle_fdevent()
558 if (NULL == ncat_local_addr || NULL == ncat_local_port) return 0; in server_oneshot_init_pipe()
559 if (NULL == ncat_remote_addr || NULL == ncat_remote_port) return 0; in server_oneshot_init_pipe()
564 port = (unsigned short)strtol(ncat_local_port, NULL, 10); in server_oneshot_init_pipe()
571 if (NULL == srv_socket) return 0; in server_oneshot_init_pipe()
573 port = (unsigned short)strtol(ncat_remote_port, NULL, 10); in server_oneshot_init_pipe()
590 if (NULL == con) return 0; in server_oneshot_init_pipe()
628 if (NULL == srv_socket) return 0; in server_oneshot_init()
650 if (NULL == con) return 0; in server_oneshot_init()
826 srv->srv_sockets.ptr[i]->srv = NULL; /* srv will shortly be invalid */ in server_sockets_save()
828 srv->srv_sockets_inherited.ptr[i]->srv = NULL; /* srv to be invalid */ in server_sockets_save()
902 if (NULL == prev_gen) return; in server_graceful_signal_prev_generation()
903 pid_t pid = (pid_t)strtol(prev_gen, NULL, 10); in server_graceful_signal_prev_generation()
906 if (pid == fdevent_waitpid(pid,NULL,1)) return; /*(pid exited; unexpected)*/ in server_graceful_signal_prev_generation()
935 : NULL == strchr(argv[0], '/')) return 0; in server_graceful_state_bg()
1010 srv->srvconf.pid_file = NULL; in server_graceful_state_bg()
1072 srv->srvconf.pid_file = NULL; in server_graceful_state()
1211 sigaction(SIGUSR1, &actignore, NULL); in server_main_setup_workers()
1223 srv->srvconf.pid_file = NULL; in server_main_setup_workers()
1304 if (!srv->config_data_base && NULL != getenv("NSSM_SERVICE_NAME")) { in server_main_setup()
1306 if (NULL != dir && 0 != chdir(dir)) { in server_main_setup()
1331 srv->srvconf.pid_file = NULL; in server_main_setup()
1359 srv->srvconf.pid_file = NULL; in server_main_setup()
1431 http_response_send_1xx_cb_set(NULL, HTTP_VERSION_2); in server_main_setup()
1435 http_response_send_1xx_cb_set(NULL, HTTP_VERSION_1_1); in server_main_setup()
1461 for (const char *pname = NULL; i < srv->plugins.used; ++i) { in server_main_setup()
1561 struct group *grp = NULL; in server_main_setup()
1562 struct passwd *pwd = NULL; in server_main_setup()
1565 if (NULL == (grp = getgrnam(srv->srvconf.groupname->ptr))) { in server_main_setup()
1573 if (NULL == (pwd = getpwnam(srv->srvconf.username->ptr))) { in server_main_setup()
1585 if (NULL == grp && NULL == (grp = getgrgid(pwd->pw_gid))) { in server_main_setup()
1592 if (NULL != grp) { in server_main_setup()
1604 if (NULL != grp) { in server_main_setup()
1609 if (-1 == setgroups(0, NULL)) { in server_main_setup()
1634 if (NULL != pwd) { in server_main_setup()
1750 if (NULL == srv->ev) { in server_main_setup()
1799 if (setitimer(ITIMER_REAL, &interval, NULL)) { in server_main_setup()
1938 con->jqnext = NULL; in __attribute_nonnull__()
1976 if (NULL == srv->conns && graceful_shutdown) { in server_main_loop()
2030 unsigned long top_pad = strtoul(top_pad_str, NULL, 10); in main_init_once()
2072 if (NULL == srv->conns) rc = 0; in main()
2105 while (fdevent_waitpid(-1, NULL, 0) > 0) ; in main()