mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +00:00
Merge pull request #3103 from tych0/info-on-enosys
pidfds: don't print a scary warning on ENOSYS
This commit is contained in:
commit
d0b950440a
@ -1641,7 +1641,10 @@ static int proc_pidfd_open(pid_t pid)
|
|||||||
|
|
||||||
/* Test whether we can send signals. */
|
/* Test whether we can send signals. */
|
||||||
if (lxc_raw_pidfd_send_signal(proc_pidfd, 0, NULL, 0)) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user