Unverified Commit d0b95044 by Christian Brauner Committed by GitHub

Merge pull request #3103 from tych0/info-on-enosys

pidfds: don't print a scary warning on ENOSYS
parents 5c338ef4 9c579205
......@@ -1641,7 +1641,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