shithub: lu9-p9

ref: 4d4deaa134b151e364f06c5731790b23dcd35233
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)
		return error(L, "rfork %r");
	lua_pushinteger(L, r);
	return 1;
}