On Thursday 31 August 2006 14:23, Arkadiusz Miskiewicz wrote: > # ipmievd -I open open nodaemon > Reading sensors... > Waiting for events... > > seems working but: > # ipmievd -I open open daemon > # > and it logs: > Aug 31 14:21:34 web2 ipmievd: Reading sensors... > Aug 31 14:21:34 web2 ipmievd: Unable to send command: Invalid argument > Aug 31 14:21:34 web2 ipmievd: Get Device ID command failed > Aug 31 14:21:34 web2 ipmievd: Unable to open SDR for reading > Aug 31 14:21:34 web2 ipmievd: Unable to send command: Invalid argument > Aug 31 14:21:34 web2 ipmievd: Get BMC Global Enables command failed > Aug 31 14:21:34 web2 ipmievd: Could not enable event message buffer > Aug 31 14:21:34 web2 ipmievd: Error setting up Event Interface open > > > ipmievd version 1.8.8
diff -ur ipmitool-1.8.8/include/ipmitool/helper.h ipmitool-1.8.8/include/ipmitool/helper.h --- ipmitool-1.8.8/include/ipmitool/helper.h 2006-03-19 18:59:38.000000000 +0100 +++ ipmitool-1.8.8/include/ipmitool/helper.h 2006-08-31 15:28:42.299513715 +0200 @@ -54,7 +54,7 @@ void printbuf(const uint8_t * buf, int len, const char * desc); uint8_t ipmi_csum(uint8_t * d, int s); FILE * ipmi_open_file(const char * file, int rw); -void ipmi_start_daemon(void); +void ipmi_start_daemon(int used_fd); #define ipmi_open_file_read(file) ipmi_open_file(file, 0) #define ipmi_open_file_write(file) ipmi_open_file(file, 1) Tylko w ipmitool-1.8.8/include/ipmitool: helper.h~ diff -ur ipmitool-1.8.8/lib/helper.c ipmitool-1.8.8/lib/helper.c --- ipmitool-1.8.8/lib/helper.c 2006-03-28 18:56:56.000000000 +0200 +++ ipmitool-1.8.8/lib/helper.c 2006-08-31 15:28:36.802400339 +0200 @@ -344,7 +344,7 @@ } void -ipmi_start_daemon(void) +ipmi_start_daemon(int used_fd) { pid_t pid; int fd; @@ -398,7 +398,7 @@ chdir("/"); umask(0); - for (fd=0; fd<64; fd++) + for (fd=0; fd<64 && fd != used_fd ; fd++) close(fd); open("/dev/null", O_RDWR); diff -ur ipmitool-1.8.8/src/ipmievd.c ipmitool-1.8.8/src/ipmievd.c --- ipmitool-1.8.8/src/ipmievd.c 2006-05-02 01:22:44.000000000 +0200 +++ ipmitool-1.8.8/src/ipmievd.c 2006-08-31 15:28:09.856550116 +0200 @@ -654,7 +654,7 @@ FILE *fp; struct stat st1; - ipmi_start_daemon(); + ipmi_start_daemon(eintf->intf->fd); if (lstat(pidfile, &st1) == 0) { /* already exists, erase first */ -- Arkadiusz MiĆkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel