Chapter 5 - Process Management
This commit is contained in:
9
chp5/session.c
Normal file
9
chp5/session.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#define _XOPEN_SOURCE 500
|
||||
#include <unistd.h>
|
||||
|
||||
int main(void) {
|
||||
printf("My session id=%d\n", getsid(0));
|
||||
printf("My process group id=%d\n", getpgid(0));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user