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
commit94735f0ad7f67c56afa1513381c73e8f62cd44fc (patch)
treefe07174cab4eba5d50ee5ad04684cfee6e454b08 /remote-cstms.c
parent7c77486d1fbc820e6db97a5a11fabdc34dbdb729 (diff)
downloadgunmake-94735f0ad7f67c56afa1513381c73e8f62cd44fc.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 713b89a..1c4591b 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)