projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
893712f
)
libs/nixio: cancel pending alarm after successfully returning from getnameinfo()
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 27 Aug 2012 14:54:07 +0000
(14:54 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 27 Aug 2012 14:54:07 +0000
(14:54 +0000)
libs/nixio/src/address.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/address.c
b/libs/nixio/src/address.c
index a9759ea54640be4f459afbeb737238be659e4881..d4f13d7642a328b211d43f999e8977c17d4aadfa 100644
(file)
--- 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) {