libs/nixio: cancel pending alarm after successfully returning from getnameinfo()
This commit is contained in:
parent
893712f77f
commit
54567e57ea
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue