[BusyBox] networking/route.c: Clean up.
Shaun Jackman
sjackman at gmail.com
Mon Aug 22 01:56:54 MDT 2005
2005-08-22 Shaun Jackman <sjackman at gmail.com>
* networking/route.c (INET_setroute): Clean up the file descriptor.
(INET6_setroute): Ditto.
Index: networking/route.c
===================================================================
--- networking/route.c (revision 11222)
+++ networking/route.c (working copy)
@@ -329,8 +329,7 @@
bb_perror_msg_and_die("SIOC[ADD|DEL]RT");
}
- /* Don't bother closing, as we're exiting after we return anyway. */
- /* close(skfd); */
+ if (ENABLE_FEATURE_CLEAN_UP) close(skfd);
}
#ifdef CONFIG_FEATURE_IPV6
@@ -440,8 +439,7 @@
bb_perror_msg_and_die("SIOC[ADD|DEL]RT");
}
- /* Don't bother closing, as we're exiting after we return anyway. */
- /* close(skfd); */
+ if (ENABLE_FEATURE_CLEAN_UP) close(skfd);
}
#endif
More information about the busybox
mailing list