On our QNX systems, the PID files for nmbd and smbd are sometimes corrupted when the system shuts down. When the system next boots up and nmbd and smbd try to start, I think that they're unable to open their respective PID files. This causes pidfile_pid to return 0 but not remove the file. pidfile_create then fails when it tries to create the file.
Created attachment 4626 [details] Unlink the pidfile if it exists but cannot be opened
To me that looks ok (waiting for more comments), but can't we fix the deeper problem: How are the pidfiles corrupted? Volker
(In reply to comment #2) > To me that looks ok (waiting for more comments), but can't we fix the deeper > problem: How are the pidfiles corrupted? I think it usually occurs if the files are open when the system shuts down abnormally (e.g., a power outage). We also see a lot of corruption of the .tdb databases.