The first one seems to be a pasto from the fork(2) error message. 
The second just makes the error message unique. 

My coding foo lives in /nonexistent. That's the reason I was trying to
read the code after seeing the commit message (fork(2)/pipe(2)).
Please bear with me.

Bye, Marcus

Index: rdate.c
===================================================================
RCS file: /cvs/src/usr.sbin/rdate/rdate.c,v
retrieving revision 1.33
diff -u -p -u -r1.33 rdate.c
--- rdate.c     29 Oct 2015 03:16:15 -0000      1.33
+++ rdate.c     30 Oct 2015 17:44:22 -0000
@@ -144,7 +144,7 @@ main(int argc, char **argv)
                break;
        case 0:
                if (pledge("stdio inet dns", NULL) == -1)
-                       err(1, "fork");
+                       err(1, "child pledge");
 
                close(p[0]);    /* read side of pipe */
                dup2(p[1], STDIN_FILENO);
@@ -168,7 +168,7 @@ main(int argc, char **argv)
        }
 
        if (pledge("stdio rpath wpath settime", NULL) == -1)
-               err(1, "pledge");
+               err(1, "parent pledge");
 
        close(p[1]);    /* write side of pipe */
        if (read(p[0], &pdata, sizeof pdata) < 1)

Reply via email to