shithub: lu9-p9

ref: 68af611454400ea7ef8617c7c8b35d817e9caa50
dir: lu9-p9/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;
}