summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2018-10-02 14:49:40 +0200
committerDamien Miller <djm@mindrot.org>2018-10-02 14:49:40 +0200
commitff3a411cae0b484274b7900ef52ff4dad3e12876 (patch)
tree84ab2118d139886eeb9368fdf4e99fc5b394ad5b /session.c
parentupstream: Add server support for signalling sessions via the SSH (diff)
downloadopenssh-ff3a411cae0b484274b7900ef52ff4dad3e12876.tar.xz
openssh-ff3a411cae0b484274b7900ef52ff4dad3e12876.zip
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)
SSH_SIG(USR1);
SSH_SIG(USR2);
#undef SSH_SIG
+#ifdef SIGINFO
if (strcmp(name, "INFO@openssh.com") == 0)
return SIGINFO;
+#endif
return -1;
}