From dc11be1e8a0298a1e804b7a4da5a2be9b5867aa5 Mon Sep 17 00:00:00 2001 From: millert <> Date: Tue, 12 Sep 2000 17:30:45 +0000 Subject: [PATCH] o add missing getsid() prototype o fix typo in getsid() that broke getsid(pid) where pid != 0 o cause getsid() and getpgid() to return EPERM if requesting the id of a session/process group not in the current session o check for NULL session in getsid() for exiting processes --- src/include/unistd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index 65084f6c..847abb38 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.32 2000/07/19 19:26:04 mickey Exp $ */ +/* $OpenBSD: unistd.h,v 1.33 2000/09/12 17:30:45 millert Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -85,6 +85,7 @@ pid_t getpgrp __P((void)); pid_t getpid __P((void)); pid_t getpgid __P((pid_t)); pid_t getppid __P((void)); +pid_t getsid __P((pid_t)); uid_t getuid __P((void)); int isatty __P((int)); int link __P((const char *, const char *));