summaryrefslogtreecommitdiff
path: root/remote-cstms.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-06 00:22:27 -0400
committerPaul Smith <psmith@gnu.org>2013-05-06 00:22:27 -0400
commit31f3ffe8a1e9c24433441fd0f3353de02edfc7e1 (patch)
treefe07174cab4eba5d50ee5ad04684cfee6e454b08 /remote-cstms.c
parent127757adcbc281e3cd1476947bebc9131ae05d27 (diff)
downloadmake-31f3ffe8a1e9c24433441fd0f3353de02edfc7e1.tar.gz
Remove use of vfork().
GCC was giving us warnings, most OS's now just run fork() when you call vfork(), and looking at the standard definition of vfork() we are a long way from using it safely anyway: you're not allowed to even call a function before you exec().
Diffstat (limited to 'remote-cstms.c')
-rw-r--r--remote-cstms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote-cstms.c b/remote-cstms.c
index 713b89a6..1c4591b8 100644
--- a/remote-cstms.c
+++ b/remote-cstms.c
@@ -221,11 +221,11 @@ start_remote_job (char **argv, char **envp, int stdin_fd,
fflush (stdout);
fflush (stderr);
- pid = vfork ();
+ pid = fork ();
if (pid < 0)
{
/* The fork failed! */
- perror_with_name ("vfork", "");
+ perror_with_name ("fork", "");
return 1;
}
else if (pid == 0)