multipath-tools/libmultipath discovery.c
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL4_FC5
Changes by: [email protected] 2008-04-14 17:59:55
Modified files:
libmultipath : discovery.c
Log message:
Move the fd close call to fix a regression caused by the max_fd work.
libmultipath/discovery.c +4 -4
@@ -737,10 +737,6 @@condlog (3 ,"serial = %s" , pp->serial); } -#ifndef DAEMON -close (pp->fd); - pp->fd =-1 ; -#endif return 0 ; }
@@ -827,6 +823,10 @@else if (strlen (pp->wwid))condlog (3 ,"uid = %s (cache)" , pp->wwid); +#ifndef DAEMON +close (pp->fd); + pp->fd =-1 ; +#endif return 0 ; out: