In /etc/init.d/xdm stop, the start-stop-daemon line in the if statement (the one with --test) has the wrong order of arguments. It should read --stop --quiet --test --exec, not --quiet --test --stop --exec. In the current order of arguments "--quiet" is ignored, causing a message "Would send signal 15 to <kdm pid>" at shutdown. Reproducible: Always
OK, must have been looking at the wrong place for output after changing that. Changing the order of arguments does not affect the output at all. Some more testing on the commandline reveals that --quiet has no effect at all in --test mode: # start-stop-daemon --stop --test --exec /usr/kde/3.5/bin/kdm # start-stop-daemon --quiet --stop --test --exec /usr/kde/3.5/bin/kdm # start-stop-daemon --stop --test --quiet --exec /usr/kde/3.5/bin/kdm etc. all produce the same output Would send signal 15 to 3644. Would send signal 15 to 3504. One is my current pid of kdm, the other that of "-:O". Maybe this is a bug in start-stop-daemon? [I am not sure why only one of these messages appears in the on screen messages at shutdown. I can't recall ever seeing two such messages there.]
Apparently not xinit bug. File a new one for baselayout if you wish if that's not fixed w/ baselayout-2.