• Home
  • Raw
  • Download

Lines Matching +full:sometimes +full:- +full:uninitialized

29 #include "handle-inl.h"
70 * the parent process. Don't check for errors - the stdio handles may not be
78 /* Make the windows stdio handles non-inheritable. */ in uv_disable_stdio_inheritance()
91 /* Make inherited CRT FDs non-inheritable. */ in uv_disable_stdio_inheritance()
102 /* _get_osfhandle will sometimes return -2 in case of an error. This seems to in uv__duplicate_handle()
104 * NULL. Unfortunately DuplicateHandle will happily duplicate (HANDLE) -2, so in uv__duplicate_handle()
106 * Therefore we filter out known-invalid handles here. */ in uv__duplicate_handle()
109 handle == (HANDLE) -2) { in uv__duplicate_handle()
134 if (fd == -1) { in uv__duplicate_fd()
176 count = options->stdio_count; in uv__stdio_create()
179 /* Only support FDs 0-255 */ in uv__stdio_create()
202 if (i < options->stdio_count) { in uv__stdio_create()
203 fdopt = options->stdio[i]; in uv__stdio_create()
214 * stdout/err should be writable. For FDs > 2, don't do anything - all in uv__stdio_create()
238 * an uninitialized, but not connected pipe handle. */ in uv__stdio_create()
239 assert(fdopt.data.stream->type == UV_NAMED_PIPE); in uv__stdio_create()
240 assert(!(fdopt.data.stream->flags & UV_HANDLE_CONNECTION)); in uv__stdio_create()
241 assert(!(fdopt.data.stream->flags & UV_HANDLE_PIPESERVER)); in uv__stdio_create()
298 return -1; in uv__stdio_create()
312 if (stream->type == UV_TTY) { in uv__stdio_create()
313 stream_handle = ((uv_tty_t*) stream)->handle; in uv__stdio_create()
315 } else if (stream->type == UV_NAMED_PIPE && in uv__stdio_create()
316 stream->flags & UV_HANDLE_CONNECTION) { in uv__stdio_create()
317 stream_handle = ((uv_pipe_t*) stream)->handle; in uv__stdio_create()
344 return -1; in uv__stdio_create()