summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-18 08:01:49 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-18 08:01:49 +0000
commit7d30371be2837dafa3f09c2ea23b9cc9054ebadc (patch)
treecf5018606c16614a09b48b816662d189c899e9ea /src
parenta08d4b56da94b88dc4c7ed8af6d00b07c41a5886 (diff)
downloadmdevd-7d30371be2837dafa3f09c2ea23b9cc9054ebadc.tar.gz
mdevd-7d30371be2837dafa3f09c2ea23b9cc9054ebadc.tar.xz
mdevd-7d30371be2837dafa3f09c2ea23b9cc9054ebadc.zip
Fix sig_altignore() api
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index 9acb2e4..3e73393 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -1075,7 +1075,7 @@ int main (int argc, char const *const *argv)
   if (x[1].fd < 0) strerr_diefu1sys(111, "init netlink") ;
   x[0].fd = selfpipe_init() ;
   if (x[0].fd < 0) strerr_diefu1sys(111, "init selfpipe") ;
-  if (sig_altignore(SIGPIPE) < 0) strerr_diefu1sys(111, "ignore SIGPIPE") ;
+  if (!sig_altignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ;
   {
     sigset_t set ;
     sigemptyset(&set) ;