- dtucker@cvs.openbsd.org 2012/12/07 01:51:35
[serverloop.c] Cast signal to int for logging. A no-op on openbsd (they're always ints) but will prevent warnings in portable. ok djm@
This commit is contained in:
parent
8a96522482
commit
3e1027cd1f
|
@ -15,6 +15,10 @@
|
||||||
- markus@cvs.openbsd.org 2012/12/05 15:42:52
|
- markus@cvs.openbsd.org 2012/12/05 15:42:52
|
||||||
[ssh-add.c]
|
[ssh-add.c]
|
||||||
prevent double-free of comment; ok djm@
|
prevent double-free of comment; ok djm@
|
||||||
|
- dtucker@cvs.openbsd.org 2012/12/07 01:51:35
|
||||||
|
[serverloop.c]
|
||||||
|
Cast signal to int for logging. A no-op on openbsd (they're always ints)
|
||||||
|
but will prevent warnings in portable. ok djm@
|
||||||
|
|
||||||
20121205
|
20121205
|
||||||
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
|
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: serverloop.c,v 1.163 2012/12/02 20:46:11 djm Exp $ */
|
/* $OpenBSD: serverloop.c,v 1.164 2012/12/07 01:51:35 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -708,7 +708,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg)
|
||||||
&nalloc, max_time_milliseconds);
|
&nalloc, max_time_milliseconds);
|
||||||
|
|
||||||
if (received_sigterm) {
|
if (received_sigterm) {
|
||||||
logit("Exiting on signal %d", received_sigterm);
|
logit("Exiting on signal %d", (int)received_sigterm);
|
||||||
/* Clean up sessions, utmp, etc. */
|
/* Clean up sessions, utmp, etc. */
|
||||||
cleanup_exit(255);
|
cleanup_exit(255);
|
||||||
}
|
}
|
||||||
|
@ -858,7 +858,7 @@ server_loop2(Authctxt *authctxt)
|
||||||
&nalloc, 0);
|
&nalloc, 0);
|
||||||
|
|
||||||
if (received_sigterm) {
|
if (received_sigterm) {
|
||||||
logit("Exiting on signal %d", received_sigterm);
|
logit("Exiting on signal %d", (int)received_sigterm);
|
||||||
/* Clean up sessions, utmp, etc. */
|
/* Clean up sessions, utmp, etc. */
|
||||||
cleanup_exit(255);
|
cleanup_exit(255);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue