summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-03-08 23:41:56 +0100
committerDarren Tucker <dtucker@dtucker.net>2022-03-08 23:41:56 +0100
commit5ae31a0fdd27855af29f48ff027491629fff5979 (patch)
tree06c838ce325fd6321812afc506c9e4b499b73db2 /openbsd-compat/bsd-misc.c
parentCheck for missing ftruncate prototype. (diff)
downloadopenssh-5ae31a0fdd27855af29f48ff027491629fff5979.tar.xz
openssh-5ae31a0fdd27855af29f48ff027491629fff5979.zip
Provide killpg implementation.
Based on github PR#301 for Tandem NonStop.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index d9c9b2671..3b00ef6d2 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -412,6 +412,14 @@ getsid(pid_t pid)
}
#endif
+#ifndef HAVE_KILLPG
+int
+killpg(pid_t pgrp, int sig)
+{
+ return kill(pgrp, sig);
+}
+#endif
+
#ifdef FFLUSH_NULL_BUG
#undef fflush
int _ssh_compat_fflush(FILE *f)