[openssh-commits] [openssh] 06/07: Add no-op getsid implmentation.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Feb 26 00:15:48 AEDT 2018


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit b39593a6de5290650a01adf8699c6460570403c2
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sun Feb 25 13:25:15 2018 +1100

    Add no-op getsid implmentation.
---
 configure.ac              |  1 +
 openbsd-compat/bsd-misc.c | 10 ++++++++++
 openbsd-compat/bsd-misc.h |  4 ++++
 3 files changed, 15 insertions(+)

diff --git a/configure.ac b/configure.ac
index e9762ba6..f96c70bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1739,6 +1739,7 @@ AC_CHECK_FUNCS([ \
 	getpgrp \
 	_getpty \
 	getrlimit \
+	getsid \
 	getttyent \
 	glob \
 	group_from_gid \
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index af58f3bd..a2f75055 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -298,3 +298,13 @@ raise(int sig)
 	kill(getpid(), sig);
 }
 #endif
+
+#ifndef HAVE_GETSID
+pid_t
+getsid(pid_t pid)
+{
+	errno = ENOSYS;
+	return -1;
+}
+#endif
+
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 3cb912d2..af2ccdae 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -141,4 +141,8 @@ void bzero(void *, size_t);
 int raise(int);
 #endif
 
+#ifndef HAVE_GETSID
+pid_t getsid(pid_t);
+#endif
+
 #endif /* _BSD_MISC_H */

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list