Lines Matching refs:flags

88   loop->child_watcher.flags |= UV_HANDLE_INTERNAL;  in uv__process_init()
121 if ((process->flags & UV_HANDLE_REAP) == 0) in uv__wait_children()
124 process->flags &= ~UV_HANDLE_REAP; in uv__wait_children()
194 switch (container->flags & mask) { in uv__process_init_stdio()
207 if (container->flags & UV_INHERIT_FD) in uv__process_init_stdio()
227 int flags; in uv__process_open_stream() local
230 if (!(container->flags & UV_CREATE_PIPE) || pipefds[0] < 0) in uv__process_open_stream()
240 flags = 0; in uv__process_open_stream()
241 if (container->flags & UV_WRITABLE_PIPE) in uv__process_open_stream()
242 flags |= UV_HANDLE_READABLE; in uv__process_open_stream()
243 if (container->flags & UV_READABLE_PIPE) in uv__process_open_stream()
244 flags |= UV_HANDLE_WRITABLE; in uv__process_open_stream()
246 return uv__stream_open(container->data.stream, pipefds[0], flags); in uv__process_open_stream()
251 if (!(container->flags & UV_CREATE_PIPE)) return; in uv__process_close_stream()
304 if (options->flags & UV_PROCESS_DETACHED) in uv__process_child_init()
372 if (options->flags & (UV_PROCESS_SETUID | UV_PROCESS_SETGID)) { in uv__process_child_init()
383 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
386 if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid)) in uv__process_child_init()
461 unsigned int flags; in uv__spawn_set_posix_spawn_attrs() local
470 if (options->flags & (UV_PROCESS_SETUID | UV_PROCESS_SETGID)) { in uv__spawn_set_posix_spawn_attrs()
490 flags = POSIX_SPAWN_CLOEXEC_DEFAULT | in uv__spawn_set_posix_spawn_attrs()
493 if (options->flags & UV_PROCESS_DETACHED) { in uv__spawn_set_posix_spawn_attrs()
502 flags |= POSIX_SPAWN_SETSID; in uv__spawn_set_posix_spawn_attrs()
504 err = posix_spawnattr_setflags(attrs, flags); in uv__spawn_set_posix_spawn_attrs()
969 assert(!(options->flags & ~(UV_PROCESS_DETACHED | in uv_spawn()
1031 process->flags |= UV_HANDLE_REAP; in uv_spawn()
1032 loop->flags |= UV_LOOP_REAP_CHILDREN; in uv_spawn()
1066 if (options->stdio[i].flags & (UV_INHERIT_FD | UV_INHERIT_STREAM)) in uv_spawn()