summaryrefslogtreecommitdiff
path: root/src/l_sig_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/l_sig_handler.c')
-rw-r--r--src/l_sig_handler.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/l_sig_handler.c b/src/l_sig_handler.c
index 07f99b0..01e9662 100644
--- a/src/l_sig_handler.c
+++ b/src/l_sig_handler.c
@@ -37,16 +37,6 @@
#include "l_sig_handler.h"
-static int l_signal_getfd(lua_State *L)
-{
- if(!lua_istable(L, -1))
- luaL_error(L, "can't retreive signal fd");
-
- lua_pushliteral(L, "fd");
- lua_gettable(L, -2);
- return 1;
-}
-
static int l_signal_init(lua_State *L)
{
int sig_fd = signal_init();
@@ -57,9 +47,6 @@ static int l_signal_init(lua_State *L)
lua_pushliteral(L, "fd");
lua_pushinteger(L, sig_fd);
lua_settable(L, -3);
- lua_pushliteral(L, "getfd");
- lua_pushcfunction(L, l_signal_getfd);
- lua_settable(L, -3);
return 1;
}