From: Duncan L. <ice...@us...> - 2006-08-31 22:14:33
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv18859/lib Modified Files: helper.c Log Message: fix ipmievd fd closing bug Index: helper.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/helper.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** helper.c 28 Jul 2006 22:37:49 -0000 1.29 --- helper.c 31 Aug 2006 22:14:29 -0000 1.30 *************** *** 345,349 **** void ! ipmi_start_daemon(void) { pid_t pid; --- 345,349 ---- void ! ipmi_start_daemon(struct ipmi_intf *intf) { pid_t pid; *************** *** 399,406 **** umask(0); ! #if 0 ! for (fd=0; fd<64; fd++) ! close(fd); ! #endif open("/dev/null", O_RDWR); --- 399,406 ---- umask(0); ! for (fd=0; fd<64; fd++) { ! if (fd != intf->fd) ! close(fd); ! } open("/dev/null", O_RDWR); |