diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-12-14 10:45:17 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-12-15 09:56:32 +1000 |
commit | 793ecc3517c7128a3f7070ee6be58351a7e064b4 (patch) | |
tree | 8c41932071245c1bf656fbffccc7fe817c143cd4 /jim-posix.c | |
parent | 035055f5c5cd83e2e342063ea7b7eeb98d87bd9e (diff) | |
download | jimtcl-793ecc3517c7128a3f7070ee6be58351a7e064b4.zip jimtcl-793ecc3517c7128a3f7070ee6be58351a7e064b4.tar.gz jimtcl-793ecc3517c7128a3f7070ee6be58351a7e064b4.tar.bz2 |
Use vfork() instead of fork() in [exec]
This allows systems with vfork() but not fork() to
have a full exec implementation, including constructs such
as 2>@1 and background exec with &
Also remove the --disable-fork option.
It doesn't really make sense now since exec uses vfork
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-posix.c')
-rw-r--r-- | jim-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-posix.c b/jim-posix.c index ba4c6d7..eeec649 100644 --- a/jim-posix.c +++ b/jim-posix.c @@ -38,7 +38,7 @@ static void Jim_PosixSetError(Jim_Interp *interp) Jim_SetResultString(interp, strerror(errno), -1); } -#if defined(HAVE_FORK) && !defined(HAVE_NO_FORK) +#if defined(HAVE_FORK) static int Jim_PosixForkCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { pid_t pid; |