[lxc-devel] [lxc/master] pidf_send_signal: fix return value

Blub on Github lxc-bot at linuxcontainers.org
Mon Jul 8 16:14:20 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 358 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190708/a46f1f23/attachment.bin>
-------------- next part --------------
From cf38fe06aca7306cb244d0c7301b2d0589084d63 Mon Sep 17 00:00:00 2001
From: Wolfgang Bumiller <w.bumiller at proxmox.com>
Date: Mon, 8 Jul 2019 18:10:35 +0200
Subject: [PATCH] pidf_send_signal: fix return value

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/lxc/raw_syscalls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/raw_syscalls.c b/src/lxc/raw_syscalls.c
index f58b8d8987..de8145e887 100644
--- a/src/lxc/raw_syscalls.c
+++ b/src/lxc/raw_syscalls.c
@@ -125,9 +125,9 @@ int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
 			      unsigned int flags)
 {
 #ifdef __NR_pidfd_send_signal
-	syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags);
+	return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags);
 #else
 	errno = ENOSYS;
-#endif
 	return -1;
+#endif
 }


More information about the lxc-devel mailing list