aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-12 21:11:24 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-12 21:11:24 +0100
commita6123eafba9481f8ce47a54cccd86b4ac73b6624 (patch)
treebdb202fae7ed7ada1ac9dbd637eea079b53279d9
parente0403c6407e1b3b2ef0082a1ea4cd4e0ebf2bc33 (diff)
downloadnldev-a6123eafba9481f8ce47a54cccd86b4ac73b6624.tar.bz2
nldev-a6123eafba9481f8ce47a54cccd86b4ac73b6624.tar.xz
nldev: don't bother close netlink socket before exit
we let kernel clean that up for us
-rw-r--r--nldev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nldev.c b/nldev.c
index e1868a3..8768ec4 100644
--- a/nldev.c
+++ b/nldev.c
@@ -73,8 +73,6 @@ sighandler(int sig)
case SIGQUIT:
case SIGABRT:
case SIGTERM:
- if (listfd >= 0)
- close(listfd);
exit(0);
break;
default:
@@ -253,8 +251,6 @@ main(int argc, char *argv[])
fds[1].fd = child.fd;
}
- close(listfd);
-
return 0;
}