fd_set reader;
fd_set writer;
+ struct sigaction sa;
struct timeval timeout;
break;
case 0:
- /* child */
+ /* restore SIGTERM */
+ sa.sa_flags = 0;
+ sa.sa_handler = SIG_DFL;
+ sigemptyset(&sa.sa_mask);
+ sigaction(SIGTERM, &sa, NULL);
+
+ /* close loose pipe ends */
close(rfd[0]);
close(wfd[1]);
}
}
+void uh_lua_close(lua_State *L)
+{
+ lua_close(L);
+}
+
+