]> granicus.if.org Git - sudo/commitdiff
Fix the killpg macro for systems without killpg() in libc.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 Apr 2017 13:28:45 +0000 (07:28 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 Apr 2017 13:28:45 +0000 (07:28 -0600)
include/sudo_compat.h

index eea93b474154cf10dc31f2ca710635ed5f217b72..520680e7debf4e2d571b919680300138de9262b2 100644 (file)
@@ -278,7 +278,7 @@ typedef struct sigaction sigaction_t;
 #endif
 
 #if !defined(HAVE_KILLPG) && !defined(killpg)
-# define killpg(s)     kill(-(s))
+# define killpg(p, s)  kill((p), -(s))
 #endif
 
 /*