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

pidfds: don't print a scary warning on ENOSYS
This commit is contained in:
Christian Brauner 2019-07-23 17:48:12 +02:00 committed by GitHub
commit d0b950440a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}