diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-27 14:54:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-27 14:54:07 +0000 |
commit | 54567e57ea9e98e2384a82088e63062134b9b920 (patch) | |
tree | 0e48499e9727c984a1fe2bfc0a993ecdf36882de /libs/nixio/src | |
parent | 893712f77f2a565937de1437f12297ceec28984d (diff) |
libs/nixio: cancel pending alarm after successfully returning from getnameinfo()
Diffstat (limited to 'libs/nixio/src')
-rw-r--r-- | libs/nixio/src/address.c | 3 |
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) { |