]> granicus.if.org Git - sudo/commitdiff
Add a comment describing why we need to be notified about our child
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 23 Jan 2004 00:22:28 +0000 (00:22 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 23 Jan 2004 00:22:28 +0000 (00:22 +0000)
stopping.

sudo_edit.c

index 3bdcb5743eb73dbb55cae6ac246ddbe1407142bf..8cd8c463849f2eda0c3968949a468ebef6450735 100644 (file)
@@ -236,7 +236,13 @@ int sudo_edit(argc, argv)
        _exit(127);
     }
 
-    /* Anxious parent, waiting for letters home from camp... */
+    /*
+     * Wait for status from the child.  Most modern kernels
+     * will not let an unprivileged child process send a
+     * signal to its privileged parent to we have to request
+     * status when the child is stopped and then send the
+     * same signal to our own pid.
+     */
     do {
 #ifdef sudo_waitpid
         pid = sudo_waitpid(kidpid, &i, WUNTRACED);