Lines Matching +full:protect +full:- +full:exec

57  * as managing its door thread pool and per-thread datastructures.
59 * 1. Per-thread Datastructures
60 * -----------------------------
69 * Threads access their per-thread data using thread_self()
74 * ------------------------------
84 * at a time -- this logic is handled in reserve_new_thread(). This keeps
92 int num_servers; /* number in-progress or running */
101 static int privileged_psinfo_fd = -1;
120 * wish to have per-CPU magazines to reduce our memory footprint. And in _umem_options_init()
121 * as with svc.startd, if svc.configd is so MT-hot that this becomes a in _umem_options_init()
144 (void) sigfillset(&ucp->uc_sigmask); in abort_handler()
145 (void) sigdelset(&ucp->uc_sigmask, sig); in abort_handler()
146 ucp->uc_flags |= UC_SIGMASK; in abort_handler()
170 uu_list_node_fini(ti, &ti->ti_node, thread_pool); in thread_info_free()
171 if (ti->ti_ucred != NULL) in thread_info_free()
172 uu_free(ti->ti_ucred); in thread_info_free()
182 log_enter(&ti->ti_log); in thread_exiting()
186 num_started--; in thread_exiting()
190 --num_servers; in thread_exiting()
205 ti->ti_ucred_read = 0; /* invalidate cached ucred */ in thread_newstate()
206 if (newstate != ti->ti_state) { in thread_newstate()
207 ti->ti_prev_state = ti->ti_state; in thread_newstate()
208 ti->ti_state = newstate; in thread_newstate()
209 ti->ti_lastchange = gethrtime(); in thread_newstate()
227 ucred_t **ret = &ti->ti_ucred; in get_ucred()
229 if (ti->ti_ucred_read) in get_ucred()
234 ti->ti_ucred_read = 1; in get_ucred()
268 return (ti->ti_active_client->rc_adt_session); in get_audit_session()
309 uu_list_node_init(ti, &ti->ti_node, thread_pool); in new_thread_needed()
310 ti->ti_state = TI_CREATED; in new_thread_needed()
311 ti->ti_prev_state = TI_CREATED; in new_thread_needed()
313 if ((ti->ti_ucred = uu_zalloc(ucred_size())) == NULL) in new_thread_needed()
318 if ((errno = pthread_create(&ti->ti_thread, &thread_attr, thread_start, in new_thread_needed()
349 * our original parent -- the psinfo read verifies that in create_connection()
376 ((*(out) = (rp)->f), 1) : 0) in create_connection()
408 if (message[0] == 0 || message[strlen(message) - 1] != '\n') in configd_vlog()
442 "usage: %s [-np] [-d door_path] [-r repository_path]\n" in usage()
443 " [-t nonpersist_repository]\n", prog); in usage()
454 static int pipe_fd = -1;
469 return (-1); in daemonize_start()
472 return (-1); in daemonize_start()
492 status = -1; in daemonize_start()
497 _exit(-1); in daemonize_start()
581 while ((c = getopt(argc, argv, "Dnpd:r:t:")) != -1) { in main()
588 have_npdb = 0; /* default to no non-persist */ in main()
596 * protect against that, re-check our ppid after in main()
642 * if a non-persist db is specified, always enable it in main()
672 /* not that we can exec, but to be safe, shut them all off... */ in main()
717 (void) enable_extended_FILE_stdio(-1, -1); in main()
755 uu_list_node_init(ti, &ti->ti_node, thread_pool); in main()
759 ti->ti_thread = pthread_self(); in main()
760 ti->ti_state = TI_SIGNAL_WAIT; in main()
761 ti->ti_prev_state = TI_SIGNAL_WAIT; in main()