]> granicus.if.org Git - sudo/commitdiff
Quiet a PVS-Studio warning about the spin loop when waiting for the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 19:49:04 +0000 (13:49 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 19:49:04 +0000 (13:49 -0600)
parent to assign us the terminal pgrp.

src/exec_pty.c

index 3b26368fe5eb94e33817fa9ae6b89c2f47d64856..f317146bf84e02bf1e0b2c82ccad1166c4b0158a 100644 (file)
@@ -1539,7 +1539,7 @@ static void
 exec_pty(struct command_details *details,
     struct command_status *cstat, int errfd)
 {
-    pid_t self = getpid();
+    volatile pid_t self = getpid();
     debug_decl(exec_pty, SUDO_DEBUG_EXEC);
 
     /* Register cleanup function */