diff options
author | Paul Smith <psmith@gnu.org> | 2013-05-06 00:22:27 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-05-06 00:22:27 -0400 |
commit | 94735f0ad7f67c56afa1513381c73e8f62cd44fc (patch) | |
tree | fe07174cab4eba5d50ee5ad04684cfee6e454b08 /remote-cstms.c | |
parent | 7c77486d1fbc820e6db97a5a11fabdc34dbdb729 (diff) | |
download | gunmake-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.c | 4 |
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) |