XD2031
XD2031 copied to clipboard
Verbose / restarting fsser
If the device is powered by the CBM (e.g. petSD connected to tape port) and the CBM doesn't have a reset key, a power cycle will disconnect the device. fsser stops exection then without a word what happend.
A user might not expect that a "reset" (okay, it's a power cylce) will stop XD-2031.
fsser should try to re-open the device. This could be difficult if it started with root rights and droped rights later. At least, it should give a hint, why it stopped.
Took me a while to find out that read() DOES NOT return with -1 (error) if the device gets powered off. It returns with 0. Tested with OS X 10.6.8 and my Linux Box.
fsser gives a hint now, but doesn't try to restart yet.
Restarts on Linux.