shithub: lu9-p9

ref: 42bdc44ec9bbdd4054fb242a9f3c204652cadc73
dir: /proc.c/

View raw version
static int
p9_rfork(lua_State *L)
{
	lua_Integer flags;
	int r;
	
	flags = luaL_checkinteger(L, 1);
	if((r = rfork(flags)) == -1)
		lerror(L, "rfork");
	lua_pushinteger(L, r);
	return 1;
}