diff options
Diffstat (limited to 'otherlibs/unix/fork.c')
-rw-r--r-- | otherlibs/unix/fork.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/otherlibs/unix/fork.c b/otherlibs/unix/fork.c new file mode 100644 index 000000000..046dd894c --- /dev/null +++ b/otherlibs/unix/fork.c @@ -0,0 +1,12 @@ +#include <mlvalues.h> +#include "unix.h" + +value unix_fork(unit) /* ML */ + value unit; +{ + int ret; + ret = fork(); + if (ret == -1) uerror("fork", Nothing); + return Val_int(ret); +} + |