aboutsummaryrefslogtreecommitdiff
path: root/jim-posix.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-01-24 10:34:41 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:38 +1000
commitea9e4bbb490eb2be047f46c83ff32f3d5243cd71 (patch)
tree4455b44de1432882def1462df4fc654b7609fa12 /jim-posix.c
parent1df9b19429212012b245a88b08ab37caef564d1c (diff)
downloadjimtcl-ea9e4bbb490eb2be047f46c83ff32f3d5243cd71.zip
jimtcl-ea9e4bbb490eb2be047f46c83ff32f3d5243cd71.tar.gz
jimtcl-ea9e4bbb490eb2be047f46c83ff32f3d5243cd71.tar.bz2
Enhance exec, bio
Support @filehandle syntax Support for nommu Disable os.fork for nommu Remove trailing newline No need for binary escaping in bio module ------------------------------------------------------------------------
Diffstat (limited to 'jim-posix.c')
-rw-r--r--jim-posix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/jim-posix.c b/jim-posix.c
index a7dba75..e8cb6e6 100644
--- a/jim-posix.c
+++ b/jim-posix.c
@@ -35,6 +35,10 @@ static void Jim_PosixSetError(Jim_Interp *interp)
static int Jim_PosixForkCommand(Jim_Interp *interp, int argc,
Jim_Obj *const *argv)
{
+#ifdef NO_FORK
+ Jim_SetResultString(interp, "Not supported", -1);
+ return JIM_ERR;
+#else
pid_t pid;
JIM_NOTUSED(argv);
@@ -48,6 +52,7 @@ static int Jim_PosixForkCommand(Jim_Interp *interp, int argc,
}
Jim_SetResult(interp, Jim_NewIntObj(interp, (jim_wide)pid));
return JIM_OK;
+#endif
}
static int Jim_PosixGetidsCommand(Jim_Interp *interp, int argc,