代码搜索:PID

找到约 10,000 项符合「PID」的源代码

代码结果 10,000
www.eeworm.com/read/192259/8391059

c zombie.c

#include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid == 0) /* child */ exit(0); /* parent */ sleep(4); system("ps"
www.eeworm.com/read/192259/8391067

c vfork3.c

#include #include "ourhdr.h" static void f1(void), f2(void); int main(void) { f1(); f2(); _exit(0); } static void f1(void) { pid_t pid; if ( (pid = vfork()) <
www.eeworm.com/read/192259/8391075

c shell1.c

#include #include #include "ourhdr.h" int main(void) { char buf[MAXLINE]; pid_t pid; int status; printf("%% "); /* print prompt (printf requires %% to prin
www.eeworm.com/read/192259/8391177

c child.c

#include #include #include static void sig_cld(); int main() { pid_t pid; if (signal(SIGCLD, sig_cld) == -1) perror("signal error"); if ( (pid
www.eeworm.com/read/192259/8391327

c pipe1.c

#include "ourhdr.h" int main(void) { int n, fd[2]; pid_t pid; char line[MAXLINE]; if (pipe(fd) < 0) err_sys("pipe error"); if ( (pid = fork()) < 0) err_sys("fork error");
www.eeworm.com/read/192259/8391339

c devzero.c

#include #include #include #include "ourhdr.h" #define NLOOPS 1000 #define SIZE sizeof(long) /* size of shared memory area */ static int update(long *)
www.eeworm.com/read/291779/8396433

c setsid.c

/* * linux/lib/setsid.c * * (C) 1991 Linus Torvalds */ #define __LIBRARY__ #include // Linux 标准头文件。定义了各种符号常数和类型,并申明了各种函数。 // 如定义了__LIBRARY__,则还包括系统调用号和内嵌汇编_syscall0()等。 //// 创建一个会话并设置进程组
www.eeworm.com/read/291535/8411464

txt 第十四章:进程控制.txt

第十四章:进程控制 目标 完成这一章,你能够做以下事情: 使用ps命令 在后台运行进程 ,并且使用ps命令监视正在运行的进程的状态 运行一个后台进程并使其在你退出系统后不被挂起。 切换后台进程到前台运行。 挂起一个进程。 停止进程的运行。 19.1 ps 命令 语法: ps [-efl] 报告进程的状态 例子: $ ps <mark>PID</mark> TTY TIME COMM ...
www.eeworm.com/read/391289/8412114

inf wceusbsh.inf

; ; Windows CE USB Host Setup File ; Copyright (c) Microsoft Corporation ; ; WCEUSBSH.INF -- This is the inf installation script for the stand-alone ; relea
www.eeworm.com/read/291498/8412333

c setsid.c

/* * linux/lib/setsid.c * * (C) 1991 Linus Torvalds */ #define __LIBRARY__ #include _syscall0(pid_t,setsid)