Back to index

glibc  2.9
getsid.c File Reference
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <hurd.h>

Go to the source code of this file.


pid_t getsid (pid_t pid)

Function Documentation

pid_t getsid ( pid_t  pid)

Definition at line 26 of file getsid.c.

  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);
  return sid;

Here is the call graph for this function: