13 lines
172 B
C
13 lines
172 B
C
// cc -o ppidloop 2.4_ppidloop.c
|
|
// ./ppidloop &
|
|
// sar -P ALL 1
|
|
// kill [PID]
|
|
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
int main()
|
|
{
|
|
for (;;)
|
|
getppid();
|
|
} |