Jamie Zawinski [Sun, May 26, 2002 at 03:01:12AM -0700]: > gpm lets its pid file get stale, and trusts it too much: > > % killall gpm > % gpm ... & > oops(): [/usr/local/src/gpm-1.20.0/src/gpn.c(195)]: > gpm is already running as pid 9766 hmm...this never ever happened here and I am currently trying to find out why. I attached a test and it seems to be a problem of the -D (ebug) switch. But I am not sure, because I had not enough time to test. Nico -- Nico Schottelius Please send your messages pgp-signed or pgp-encrypted. If you don't know what pgp is visit www.gnupg.org. (public pgp key: ftp.schottelius.org/pub/familiy/nico/pgp-key)
Start & Restart gpm with killall flapp:~ # killall gpm flapp:~ # gpm -v gpm 1.20.1, Thu Oct 4 00:21:21 CEST 2001 flapp:~ # gpm -t ps2 -m /dev/misc/psaux flapp:~ # killall gpm flapp:~ # gpm -t ps2 -m /dev/misc/psaux --> no problem at all ----------------- snip 1 ----------------------------- Start & Restart gpm with killall in debug mode flapp:~ # killall gpm flapp:~ # gpm -t ps2 -m /dev/misc/psaux -D & [...] flapp:~ # killall gpm *** debug ***: [gpm.c(903)]: Removing files /var/run/gpm.pid and /dev/gpmctl [1]+ Done gpm -t ps2 -m /dev/misc/psaux -D flapp:~ # gpm -t ps2 -m /dev/misc/psaux flapp:~ # ls /dev/gpm* /var/run/gpm* /dev/gpmctl /var/run/gpm.pid --> files are not deleted in debug mode... ----------------- snip 2 ----------------------------- Stop gpm and see what files are left: flapp:~ # killall gpm flapp:~ # gpm -m /dev/misc/psaux -t ps2 flapp:~ # ls /dev/gpmctl /dev/gpmctl flapp:~ # killall gpm flapp:~ # ls /dev/gpmctl ls: /dev/gpmctl: No such file or directory flapp:~ # ls /var/run/gpm* ls: /var/run/gpm*: No such file or directory --> just fine
Attachment:
pgp00033.pgp
Description: PGP signature