mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 15:00:06 +00:00
[BZ #2178]
2006-01-18 Samuel Thibault <samuel.thibault@ens-lyon.org> [BZ #2178] * sysdeps/mach/hurd/getsid.c (getsid): When parameter PID is zero, use _hurd_pid instead.
This commit is contained in:
parent
0d5cb2c74f
commit
7aaa17343d
@ -1,3 +1,9 @@
|
||||
2006-01-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
[BZ #2178]
|
||||
* sysdeps/mach/hurd/getsid.c (getsid): When parameter PID is zero,
|
||||
use _hurd_pid instead.
|
||||
|
||||
2006-02-20 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* sysdeps/alpha/soft-fp/Makefile (CPPFLAGS): Add soft-fp include
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user