libs/nixio: cancel pending alarm after successfully returning from getnameinfo()

This commit is contained in:
Jo-Philipp Wich 2012-08-27 14:54:07 +00:00
parent 893712f77f
commit 54567e57ea

View file

@ -336,7 +336,10 @@ static int nixio_getnameinfo(lua_State *L) {
#ifdef __linux__ #ifdef __linux__
if (timeout > 0 && timeout < 1000) if (timeout > 0 && timeout < 1000)
{
ualarm(0);
sigaction(SIGALRM, &sa_old, NULL); sigaction(SIGALRM, &sa_old, NULL);
}
#endif #endif
if (res) { if (res) {