[7007] in Athena Bugs
zhm, afsd
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Thu Jan 31 16:40:54 1991
To: bugs@ATHENA.MIT.EDU
Date: Thu, 31 Jan 91 16:40:42 EST
From: John Carr <jfc@ATHENA.MIT.EDU>
Short version: I worked long enough in single user mode that the zhm
pid file from last reboot held the pid of an AFS daemon. This caused
zhm to hang trying to kill it.
Long version:
There are 2 bugs.
1. afsd should not ignore signals. I should be able to kill AFS daemons and
shut down AFS without crashing the machine. I understand that CMU/Transarc
is unwilling or unable to write robust code; if they don't fix this we
should.
2. zhm should not try forever to kill the old daemon. There are a few ways
to work around this. Two safe ones are (1) have /etc/rc remove
/etc/athena/zhm.pid, (2) have zhm to keep the file open and flock()ed (in
this case, zhm should try to lock the file before reading a PID).