blob: d54f41aac6a7bb98779fe56c8ad149a4795a7097 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
main()
{
int pid;
/* ... Get the process ID of this program. */
getpid(pid);
/* ... Check to see if this program is active. */
printf("R = %d\n", kill (pid, 0));
}
|