summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-16 13:28:47 +0000
committerSteven Barth <steven@midlink.org>2009-03-16 13:28:47 +0000
commit452442d1d05983fd0e9437f2c16fa22e1d67a947 (patch)
tree524833cb3a6abbb54f9ba72892cec3fefd6e1549 /libs
parent6bfdbb69e6cd8d49bfc2ba287800de086e813425 (diff)
nixio: added syslog support
Diffstat (limited to 'libs')
-rw-r--r--libs/nixio/Makefile2
-rw-r--r--libs/nixio/src/nixio.c3
-rw-r--r--libs/nixio/src/nixio.h1
-rw-r--r--libs/nixio/src/poll.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/libs/nixio/Makefile b/libs/nixio/Makefile
index 228f6e5b6..ca22328ae 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 5e92f14dd..3a70aa8da 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 7aef9a429..23da17d44 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 33cb46964..fdec2caaf 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);