From 7aaa17343dc759012322ac3e23b1aaad9afa81f7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 21 Feb 2006 02:33:00 +0000 Subject: [BZ #2178] 2006-01-18 Samuel Thibault [BZ #2178] * sysdeps/mach/hurd/getsid.c (getsid): When parameter PID is zero, use _hurd_pid instead. --- sysdeps/mach/hurd/getsid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/mach/hurd/getsid.c b/sysdeps/mach/hurd/getsid.c index 57c10c5..9dcfa90 100644 --- a/sysdeps/mach/hurd/getsid.c +++ b/sysdeps/mach/hurd/getsid.c @@ -28,6 +28,9 @@ getsid (pid_t pid) error_t err; pid_t sid; + if (pid == 0) + pid = _hurd_pid; + err = __USEPORT (PROC, __proc_getsid (port, pid, &sid)); if (err) return (pid_t) __hurd_fail (err); -- cgit v1.1