[Olsr-cvs] olsrd-current/src/olsr_switch main.c,1.22,1.23
Bernd Petrovitsch
(spam-protected)
Mon Nov 6 00:03:58 CET 2006
Update of /cvsroot/olsrd/olsrd-current/src/olsr_switch
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32294/src/olsr_switch
Modified Files:
main.c
Log Message:
* killed file descriptor leaks
Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/main.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** main.c 8 Nov 2005 17:05:23 -0000 1.22
--- main.c 5 Nov 2006 23:03:56 -0000 1.23
***************
*** 343,346 ****
--- 343,347 ----
{
printf("bind failed for socket: %s\n", strerror(errno));
+ close(srv_socket);
exit(0);
}
***************
*** 350,353 ****
--- 351,355 ----
{
printf("listen failed for socket: %s\n", strerror(errno));
+ close(srv_socket);
exit(0);
}
More information about the Olsr-cvs
mailing list