[Pkg-shadow-devel] Bug#414542: suspend and vigr/vipw

dean gaudet dean at arctic.org
Mon Mar 12 13:08:59 CET 2007

Package: shadow
Version: 1:

try doing vigr/vipw and then ^Z... and fg... sometimes nastiness happens 
right away, sometimes it seems to take a few ^Z/fg cycles.

grep -r for WUNTRACED you'll see the vipw.c code differs from the other 
instances... patch below.


p.s. i use zsh.. and perhaps as in #317747 it's different with bash... but 
i haven't tested since this code is almost certainly wrong.

Index: shadow-
--- shadow-	2007-03-12 04:29:11.895712161 -0700
+++ shadow-	2007-03-12 04:31:08.368644850 -0700
@@ -202,7 +202,7 @@
 		pid = waitpid (pid, &status, WUNTRACED);
 		if (WIFSTOPPED (status)) {
 			kill (getpid (), SIGSTOP);
-			kill (getpid (), SIGCONT);
+			kill (pid, SIGCONT);
 		} else

More information about the Pkg-shadow-devel mailing list