From: Jo-Philipp Wich Date: Mon, 27 Aug 2012 14:54:07 +0000 (+0000) Subject: libs/nixio: cancel pending alarm after successfully returning from getnameinfo() X-Git-Tag: 0.11.0~178 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=54567e57ea9e98e2384a82088e63062134b9b920;p=project%2Fluci.git libs/nixio: cancel pending alarm after successfully returning from getnameinfo() --- diff --git a/libs/nixio/src/address.c b/libs/nixio/src/address.c index a9759ea546..d4f13d7642 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) {