Hi, A timer set with a non null it_interval via setitimer() is corrupted after a call to utmp functions. Maybe LOCK_FILE could use setitimer() rather than alarm() ?
This is how it always worked and it does indeed work. Some programs might depend or expect this horrible implementation. These interfaces are badly designed due to the historic bagage and you have to know how and when to use them.