Skip to content

Commit

Permalink
node: remove vfork magic
Browse files Browse the repository at this point in the history
Since we no longer use vfork for being able to munge envvars and the
like, we no longer need to carry the associated quirks.
  • Loading branch information
helmutg committed Nov 3, 2013
1 parent e08b2cf commit 0b437dd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/node/node.c
Expand Up @@ -27,10 +27,6 @@
#include <fnmatch.h>
#include <ctype.h>

#if !(defined(HAVE_WORKING_VFORK) || defined(S_SPLINT_S))
#define vfork fork
#endif

#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 256
#endif
Expand Down Expand Up @@ -572,8 +568,7 @@ static int handle_connection() {
/* Now is the time to set environnement */
setenvvars_conf(arg);
execl(cmdline, arg, cmd, NULL);
/* according to vfork(2) we must use _exit */
_exit(1);
exit(1);
} else if(pid < 0) {
printf("# fork failed\n");
continue;
Expand Down

0 comments on commit 0b437dd

Please sign in to comment.