shithub: lu9-p9

ref: 3654451f1948e59b1f99d7bb6efb1283714d246d
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;
}