I'm trying to run ipmievd in daemon mode on a RHEL4 Update 3, x86_64 system, however, the process closes without any errors whenever attempting to do so. The command I'm using is "ipmievd -I open open". It works fine when using nodaemon.
I suspect something is wrong in the daemonize() code that is causing problems here. I'll dig out a system with a system interface and try to hunt this down...
Running ipmievd through gdb, I found eintf->setup(eintf) returning -1 which is causing the program to cleanup and exit.
The setup function should print some sort of error message if it fails, does it show anything if you add -vvv to the command line?
(gdb) set follow-fork-mode child
(gdb) break 692
Breakpoint 1 at 0x4042b5: file ipmievd.c, line 692.
(gdb) run -I open open
Starting program: /tmp/ipmitool-1.8.8/src/ipmievd -I open open
Attaching after fork to child process 8765.
[Switching to process 8765]
Breakpoint 1, ipmievd_main (eintf=0x532360, argc=0, argv=0x7fbffffb48) at ipmievd.c:692
692 rc = eintf->setup(eintf);
(gdb) n
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
This tcsetpgrp error confused me initially but I think it is coming from gdb itself and not from ipmitool.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel