nxt_file.c (20:4dc92b438f58) nxt_file.c (494:7c83ddcc1c42)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 489 unchanged lines hidden (view full) ---

498 nxt_thread_log_debug("dup2(%FD, %FD, \"%FN\")",
499 file->fd, STDERR_FILENO, file->name);
500
501 if (dup2(file->fd, STDERR_FILENO) != -1) {
502 return NXT_OK;
503 }
504
505 nxt_thread_log_error(NXT_LOG_CRIT, "dup2(%FD, %FD, \"%FN\") failed %E",
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 489 unchanged lines hidden (view full) ---

498 nxt_thread_log_debug("dup2(%FD, %FD, \"%FN\")",
499 file->fd, STDERR_FILENO, file->name);
500
501 if (dup2(file->fd, STDERR_FILENO) != -1) {
502 return NXT_OK;
503 }
504
505 nxt_thread_log_error(NXT_LOG_CRIT, "dup2(%FD, %FD, \"%FN\") failed %E",
506 file->fd, STDERR_FILENO, file->name);
506 file->fd, STDERR_FILENO, file->name, nxt_errno);
507
508 return NXT_ERROR;
509}
510
511
512nxt_int_t
513nxt_stderr_start(void)
514{

--- 91 unchanged lines hidden ---
507
508 return NXT_ERROR;
509}
510
511
512nxt_int_t
513nxt_stderr_start(void)
514{

--- 91 unchanged lines hidden ---