nixio: added syslog support
This commit is contained in:
parent
6bfdbb69e6
commit
452442d1d0
4 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue