diff options
author | Steven Barth <steven@midlink.org> | 2009-03-16 13:28:47 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-03-16 13:28:47 +0000 |
commit | 452442d1d05983fd0e9437f2c16fa22e1d67a947 (patch) | |
tree | 524833cb3a6abbb54f9ba72892cec3fefd6e1549 | |
parent | 6bfdbb69e6cd8d49bfc2ba287800de086e813425 (diff) |
nixio: added syslog support
-rw-r--r-- | libs/nixio/Makefile | 2 | ||||
-rw-r--r-- | libs/nixio/src/nixio.c | 3 | ||||
-rw-r--r-- | libs/nixio/src/nixio.h | 1 | ||||
-rw-r--r-- | libs/nixio/src/poll.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libs/nixio/Makefile b/libs/nixio/Makefile index 228f6e5b6b..ca22328aef 100644 --- a/libs/nixio/Makefile +++ b/libs/nixio/Makefile @@ -9,7 +9,7 @@ NIXIO_TLS ?= openssl NIXIO_LDFLAGS = NIXIO_OBJ = src/nixio.o src/socket.o src/sockopt.o src/bind.o src/address.o \ - src/poll.o src/io.o src/file.o src/splice.o src/process.o \ + src/poll.o src/io.o src/file.o src/splice.o src/process.o src/syslog.o \ src/tls-context.o src/tls-socket.o ifeq ($(NIXIO_TLS),axtls) diff --git a/libs/nixio/src/nixio.c b/libs/nixio/src/nixio.c index 5e92f14dde..3a70aa8dac 100644 --- a/libs/nixio/src/nixio.c +++ b/libs/nixio/src/nixio.c @@ -22,7 +22,7 @@ #include <errno.h> #include <signal.h> -#define VERSION 0.1 +#define VERSION 0.2 /* pushes nil, error number and errstring on the stack */ @@ -122,6 +122,7 @@ LUALIB_API int luaopen_nixio(lua_State *L) { nixio_open_io(L); nixio_open_splice(L); nixio_open_process(L); + nixio_open_syslog(L); nixio_open_tls_context(L); nixio_open_tls_socket(L); diff --git a/libs/nixio/src/nixio.h b/libs/nixio/src/nixio.h index 7aef9a4295..23da17d440 100644 --- a/libs/nixio/src/nixio.h +++ b/libs/nixio/src/nixio.h @@ -41,6 +41,7 @@ void nixio_open_poll(lua_State *L); void nixio_open_io(lua_State *L); void nixio_open_splice(lua_State *L); void nixio_open_process(lua_State *L); +void nixio_open_syslog(lua_State *L); void nixio_open_tls_context(lua_State *L); void nixio_open_tls_socket(lua_State *L); diff --git a/libs/nixio/src/poll.c b/libs/nixio/src/poll.c index 33cb46964c..fdec2caaf0 100644 --- a/libs/nixio/src/poll.c +++ b/libs/nixio/src/poll.c @@ -143,9 +143,7 @@ static int nixio_poll(lua_State *L) { lua_pop(L, 3); } - do { - status = poll(fds, (nfds_t)len, timeout); - } while (status == -1 && errno == EINTR); + status = poll(fds, (nfds_t)len, timeout); if (status < 1) { free(fds); |