Fixed a glitch when using -s with a remote-shell daemon.