Avoid unnecessary getpid() calls
getsid(0) and getpgid(0) will return session ID and PGID of the calling process. Signed-off-by:Radostin Stoyanov <rstoyanov1@gmail.com> Signed-off-by:
Andrei Vagin <avagin@gmail.com>
Showing
Please
register
or
sign in
to comment