summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2018-10-02 22:49:40 +1000
committerDamien Miller <djm@mindrot.org>2018-10-02 22:49:40 +1000
commitff3a411cae0b484274b7900ef52ff4dad3e12876 (patch)
tree84ab2118d139886eeb9368fdf4e99fc5b394ad5b /session.c
parentcd98925c6405e972dc9f211afc7e75e838abe81c (diff)
only support SIGINFO on systems with SIGINFO
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/session.c b/session.c
index 63adc68c5..c5ca0556e 100644
--- a/session.c
+++ b/session.c
@@ -2120,8 +2120,10 @@ name2sig(char *name)
2120 SSH_SIG(USR1); 2120 SSH_SIG(USR1);
2121 SSH_SIG(USR2); 2121 SSH_SIG(USR2);
2122#undef SSH_SIG 2122#undef SSH_SIG
2123#ifdef SIGINFO
2123 if (strcmp(name, "INFO@openssh.com") == 0) 2124 if (strcmp(name, "INFO@openssh.com") == 0)
2124 return SIGINFO; 2125 return SIGINFO;
2126#endif
2125 return -1; 2127 return -1;
2126} 2128}
2127 2129