getsid - get process group ID of session leader
#include <unistd.h> pid_t getsid(pid_t pid);
The getsid() function obtains the process group ID of the process that is the session leader of the process specified by pid. If pid is (pid_t)0, it specifies the calling process.
Upon successful completion, getsid() returns the process group ID of the session leader of the specified process. Otherwise, it returns (pid_t)-1 and sets errno to indicate the error.
The getsid() function will fail if:
EPERM
ESRCH
See attributes(5) for descriptions of the following attributes:
|
exec(2), fork(2), getpid(2), getpgid(2), setpgid(2), setsid(2), attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |