The iSNS registration is refreshed every 5 minutes. However, when target-isns is run as a daemon, the first refresh does not work. It seems we are messing with file descriptors. Here the output of strace when target-isns is run as a daemon:
The call to sendto() should go to syslog, not on the iSNS socket. In the code, 0 is used as a magic value that means no file descriptor, but that is wrong because 0 is a valid file descriptor.
The iSNS registration is refreshed every 5 minutes. However, when target-isns is run as a daemon, the first refresh does not work. It seems we are messing with file descriptors. Here the output of
strace
when target-isns is run as a daemon:The call to
sendto()
should go to syslog, not on the iSNS socket. In the code, 0 is used as a magic value that means no file descriptor, but that is wrong because 0 is a valid file descriptor.