summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/address.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-27 14:54:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-27 14:54:07 +0000
commit54567e57ea9e98e2384a82088e63062134b9b920 (patch)
tree0e48499e9727c984a1fe2bfc0a993ecdf36882de /libs/nixio/src/address.c
parent893712f77f2a565937de1437f12297ceec28984d (diff)
libs/nixio: cancel pending alarm after successfully returning from getnameinfo()
Diffstat (limited to 'libs/nixio/src/address.c')
-rw-r--r--libs/nixio/src/address.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/nixio/src/address.c b/libs/nixio/src/address.c
index a9759ea54..d4f13d764 100644
--- a/libs/nixio/src/address.c
+++ b/libs/nixio/src/address.c
@@ -336,7 +336,10 @@ static int nixio_getnameinfo(lua_State *L) {
#ifdef __linux__
if (timeout > 0 && timeout < 1000)
+ {
+ ualarm(0);
sigaction(SIGALRM, &sa_old, NULL);
+ }
#endif
if (res) {