qfedu-linux-advanced-level/day2/d4.c

17 lines
288 B
C
Raw Permalink Normal View History

2023-08-15 19:05:13 +08:00
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char const *argv[])
{
printf("正在运行程序,进程号: %d\n", getpid());
while (1)
;
return 0;
}
/*
ps -ef | grep a.out
kill -9
*/