Unverified Commit f452e523 by Tycho Andersen Committed by Christian Brauner

pidfds: don't print a scary warning on ENOSYS

Most kernels don't have this functionality yet, and so the warning is printed a lot. Our people are scared of warnings, so let's make it INFO instead in this case. Signed-off-by: 's avatarTycho Andersen <tycho@tycho.ws>
parent cf61d25e
......@@ -1605,7 +1605,10 @@ static int proc_pidfd_open(pid_t pid)
/* Test whether we can send signals. */
if (lxc_raw_pidfd_send_signal(proc_pidfd, 0, NULL, 0)) {
SYSERROR("Failed to send signal through pidfd");
if (errno != ENOSYS)
SYSERROR("Failed to send signal through pidfd");
else
INFO("Sending signals through pidfds not supported on this kernel");
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment