From: Christian Brauner Date: Mon, 1 Feb 2021 13:44:45 +0000 (+0100) Subject: attach: log failues to dup2() with SYSDEBUG() X-Git-Tag: lxc-5.0.0~309^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7563434ac69693305f217e41c2ed819634c3777;p=thirdparty%2Flxc.git attach: log failues to dup2() with SYSDEBUG() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 01f70ac2c..82e9d9a47 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1130,15 +1130,15 @@ __noreturn static void do_attach(struct attach_payload *ap) */ if (options->stdin_fd >= 0 && options->stdin_fd != STDIN_FILENO) if (dup2(options->stdin_fd, STDIN_FILENO)) - DEBUG("Failed to replace stdin with %d", options->stdin_fd); + SYSDEBUG("Failed to replace stdin with %d", options->stdin_fd); if (options->stdout_fd >= 0 && options->stdout_fd != STDOUT_FILENO) if (dup2(options->stdout_fd, STDOUT_FILENO)) - DEBUG("Failed to replace stdout with %d", options->stdin_fd); + SYSDEBUG("Failed to replace stdout with %d", options->stdin_fd); if (options->stderr_fd >= 0 && options->stderr_fd != STDERR_FILENO) if (dup2(options->stderr_fd, STDERR_FILENO)) - DEBUG("Failed to replace stderr with %d", options->stdin_fd); + SYSDEBUG("Failed to replace stderr with %d", options->stdin_fd); /* close the old fds */ if (options->stdin_fd > STDERR_FILENO)