ocaml/otherlibs/unix/fork.c

26 lines
960 B
C
Raw Normal View History

/***********************************************************************/
/* */
/* Objective Caml */
/* */
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1996 Institut National de Recherche en Informatique et */
/* Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
/* $Id$ */
#include <mlvalues.h>
#include "unixsupport.h"
value unix_fork(unit) /* ML */
value unit;
{
int ret;
ret = fork();
if (ret == -1) uerror("fork", Nothing);
return Val_int(ret);
}