]> git.proxmox.com Git - mirror_lxc.git/commitdiff
pidf_send_signal: fix return value
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 8 Jul 2019 16:10:35 +0000 (18:10 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 8 Jul 2019 16:12:29 +0000 (18:12 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/raw_syscalls.c

index f58b8d89876211d457ee1829096f6064e5bf9ab5..de8145e8872f133f80d8e7b4e2ed5700fbab0796 100644 (file)
@@ -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
 }