summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/fork.c
blob: 046dd894ce15fa9c63dd6cb4dde6cea28ff5759b (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}