Commit cf0c751a by Jim Wilson

(fork_execute, scan_prog_file): Use "fork" in error

messages instead of "vfork" when vfork is defined to fork.

From-SVN: r4871
parent 26902ae0
...@@ -1193,7 +1193,13 @@ fork_execute (prog, argv) ...@@ -1193,7 +1193,13 @@ fork_execute (prog, argv)
pid = vfork (); pid = vfork ();
if (pid == -1) if (pid == -1)
fatal_perror ("vfork"); {
#ifdef vfork
fatal_perror ("fork");
#else
fatal_perror ("vfork");
#endif
}
if (pid == 0) /* child context */ if (pid == 0) /* child context */
{ {
...@@ -1363,7 +1369,13 @@ scan_prog_file (prog_name, which_pass) ...@@ -1363,7 +1369,13 @@ scan_prog_file (prog_name, which_pass)
/* Spawn child nm on pipe */ /* Spawn child nm on pipe */
pid = vfork (); pid = vfork ();
if (pid == -1) if (pid == -1)
fatal_perror ("vfork"); {
#ifdef vfork
fatal_perror ("fork");
#else
fatal_perror ("vfork");
#endif
}
if (pid == 0) /* child context */ if (pid == 0) /* child context */
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment