From: Todd C. Miller Date: Wed, 26 Oct 2016 19:49:04 +0000 (-0600) Subject: Quiet a PVS-Studio warning about the spin loop when waiting for the X-Git-Tag: SUDO_1_8_19^2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a7936209ef2bfcd2d6006b1a370c597e8cddc02;p=sudo Quiet a PVS-Studio warning about the spin loop when waiting for the parent to assign us the terminal pgrp. --- diff --git a/src/exec_pty.c b/src/exec_pty.c index 3b26368fe..f317146bf 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -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 */