Lines Matching refs:ret

134     nxt_int_t           ret;  in nxt_process_init_start()  local
154 ret = nxt_process_start(task, process); in nxt_process_init_start()
155 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_process_init_start()
159 return ret; in nxt_process_init_start()
167 nxt_int_t ret; in nxt_process_start() local
181 ret = nxt_port_socket_init(task, port, 0); in nxt_process_start()
182 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_start()
188 ret = NXT_ERROR; in nxt_process_start()
194 ret = init->prefork(task, process, tmp_mp); in nxt_process_start()
195 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_start()
205 ret = NXT_ERROR; in nxt_process_start()
213 ret = NXT_AGAIN; in nxt_process_start()
224 ret = NXT_OK; in nxt_process_start()
234 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_process_start()
242 return ret; in nxt_process_start()
306 nxt_int_t ret; in nxt_process_create() local
326 ret = nxt_process_child_fixup(task, process); in nxt_process_create()
327 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_create()
332 ret = nxt_process_setup(task, process); in nxt_process_create()
333 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_create()
364 nxt_int_t ret; in nxt_process_setup() local
398 ret = nxt_runtime_thread_pool_create(thread, rt, rt->auxiliary_threads, in nxt_process_setup()
400 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_setup()
418 ret = nxt_process_whoami(task, process); in nxt_process_setup()
421 ret = nxt_process_do_start(task, process); in nxt_process_setup()
424 return ret; in nxt_process_setup()
431 nxt_int_t ret; in nxt_process_do_start() local
442 ret = init->setup(task, process); in nxt_process_do_start()
443 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_do_start()
450 ret = nxt_process_send_created(task, process); in nxt_process_do_start()
454 ret = nxt_process_send_ready(task, process); in nxt_process_do_start()
456 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_do_start()
460 ret = init->start(task, &process->data); in nxt_process_do_start()
470 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_do_start()
474 return ret; in nxt_process_do_start()
484 nxt_int_t ret; in nxt_process_whoami() local
516 ret = nxt_port_socket_write(task, main_port, NXT_PORT_MSG_WHOAMI, in nxt_process_whoami()
519 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_whoami()
589 nxt_int_t ret; in nxt_process_send_created() local
611 ret = nxt_port_socket_write(task, main_port, NXT_PORT_MSG_PROCESS_CREATED, in nxt_process_send_created()
614 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_send_created()
629 nxt_int_t ret; in nxt_process_created_ok() local
639 ret = nxt_process_apply_creds(task, process); in nxt_process_created_ok()
640 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_created_ok()
646 ret = nxt_process_send_ready(task, process); in nxt_process_created_ok()
647 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_created_ok()
651 ret = init->start(task, &process->data); in nxt_process_created_ok()
657 if (nxt_fast_path(ret == NXT_OK)) { in nxt_process_created_ok()
685 nxt_int_t ret; in nxt_process_core_setup() local
687 ret = nxt_process_apply_creds(task, process); in nxt_process_core_setup()
688 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_core_setup()
741 nxt_int_t ret, cap_setid; in nxt_process_apply_creds() local
757 ret = nxt_credential_setgids(task, process->user_cred); in nxt_process_apply_creds()
758 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_apply_creds()
762 ret = nxt_credential_setuid(task, process->user_cred); in nxt_process_apply_creds()
763 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_apply_creds()
784 nxt_int_t ret; in nxt_process_send_ready() local
786 ret = nxt_port_socket_write(task, process->parent_port, in nxt_process_send_ready()
790 if (nxt_slow_path(ret != NXT_OK)) { in nxt_process_send_ready()