exit code weirdness in fatal()
Kevin Steves
stevesk at sweden.hp.com
Sun Feb 18 02:21:07 EST 2001
On Sat, 17 Feb 2001, Pekka Savola wrote:
: # ./sshd -d
: [snip]
: socket: Invalid argument
: debug1: Bind to port 22 on 0.0.0.0.
: fatal: Cannot bind any address.
: # echo $?
: 255
:
: # ./sshd
: # echo $?
: 0
:
: with './sshd', the same fatal message is printed to syslog.
this one has forked and detached from the terminal at the point of that
error. its parent does exit(0) in daemon() which is what the shell
sees.
More information about the openssh-unix-dev
mailing list