Lines Matching refs:r
68 int r = pthread_mutex_lock(&no_forking); in atfork_lock() local
69 assert(!r); in atfork_lock()
74 int r = pthread_mutex_unlock(&no_forking); in atfork_unlock() local
75 assert(!r); in atfork_unlock()
80 int r, rc; in libxl__atfork_init() local
85 r = pthread_atfork(atfork_lock, atfork_unlock, atfork_unlock); in libxl__atfork_init()
86 if (r) { in libxl__atfork_init()
87 assert(r == ENOMEM); in libxl__atfork_init()
140 int r; in libxl_postfork_child_noexec() local
146 r = close(cf->fd); in libxl_postfork_child_noexec()
147 if (r) in libxl_postfork_child_noexec()
191 int r = cf->fd < 0 ? 0 : close(cf->fd); in libxl__carefd_close() local
197 return r; in libxl__carefd_close()
238 int r = pthread_mutex_lock(&sigchld_defer_mutex); in sigchld_handler() local
239 assert(!r); in sigchld_handler()
246 r = pthread_mutex_unlock(&sigchld_defer_mutex); in sigchld_handler()
247 assert(!r); in sigchld_handler()
255 int r; in sigchld_sethandler_raw() local
261 r = sigaction(SIGCHLD, &ours, old); in sigchld_sethandler_raw()
262 assert(!r); in sigchld_sethandler_raw()
301 int r = pthread_mutex_lock(&sigchld_defer_mutex); in defer_sigchld() local
302 assert(!r); in defer_sigchld()
309 int r = pthread_mutex_unlock(&sigchld_defer_mutex); in release_sigchld() local
310 assert(!r); in release_sigchld()
329 int r; in sigchld_removehandler_core() local
334 r = sigaction(SIGCHLD, &sigchld_saved_action, &was); in sigchld_removehandler_core()
335 assert(!r); in sigchld_removehandler_core()
706 int r = kill(pid, sig); in libxl__ev_child_kill_deregister() local
707 if (r) in libxl__ev_child_kill_deregister()