代码搜索:fork

找到约 4,354 项符合「fork」的源代码

代码结果 4,354
www.eeworm.com/read/476738/6749138

c fork1.c

#include "apue.h" int glob = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(void) { int var; /* automatic variable on the stack */ pid_t pid; var
www.eeworm.com/read/476738/6749154

c fork2.c

#include "apue.h" #include int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { /* first child */ if ((pid = fork()) < 0) err_s
www.eeworm.com/read/476848/6751844

c fork1.c

#include #include "ourhdr.h" int glob = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(void) { int var; /* automatic variable on the s
www.eeworm.com/read/476848/6751859

c fork2.c

#include #include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid == 0) { /* first child */ if ( (pid
www.eeworm.com/read/410484/11283333

c fork_descriptor.c

#include #include #include #include #include #include int main(int argc,char *argv[]) { pid_t pid; int fd; int i=1; i
www.eeworm.com/read/264377/11317532

c fork1.c

#include "apue.h" int glob = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(void) { int var; /* automatic variable on the stack */ pid_t pid; var
www.eeworm.com/read/264377/11317551

c fork2.c

#include "apue.h" #include int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { /* first child */ if ((pid = fork()) < 0) err_s
www.eeworm.com/read/408584/11380165

c sctpserv_fork.c

#include "unp.h" int main(int argc, char **argv) { int sock_fd,msg_flags,connfd,childpid; sctp_assoc_t assoc; char readbuf[BUFFSIZE]; struct sockaddr_in servaddr, cliaddr; struct sctp_sndrcvinfo
www.eeworm.com/read/408584/11380186

lc sctpserv_fork.lc

#include "unp.h"## 1 ##src/sctp/sctpserv_fork.c## int## 2 ##src/sctp/sctpserv_fork.c## main(int argc, char **argv)## 3 ##src/sctp/sctpserv_fork.c## {## 4 ##src/sctp/sctpserv_fork.c## int
www.eeworm.com/read/402196/11541152

c fork3.c

#include #include #include int main(void) { pid_t pid; pid = fork(); switch(pid) { case 0: while(1) { printf("A background process, PI