代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/385462/2590523
h syscall_nr.h
/*
* This file contains the system call numbers.
*/
#define TARGET_NR_restart_syscall 0
#define TARGET_NR_exit 1
#define TARGET_NR_fork 2
#define TARGET_NR_read 3
#define TARGET_NR_wr
www.eeworm.com/read/359563/2975128
c sig3.c
#include
#include
#include
void childfunc(int sig)
{
fprintf(stderr, "Get Sig\n");
exit(6);
}
void main()
{
pid_t pid;
int status;
if ((pid = fork()) < 0) exit(1);
www.eeworm.com/read/359096/2979825
h syscall_nr.h
/*
* This file contains the system call numbers.
*/
#define TARGET_NR_restart_syscall 0
#define TARGET_NR_exit 1
#define TARGET_NR_fork 2
#define TARGET_NR_read 3
#define TARGET_NR_write
www.eeworm.com/read/359096/2979833
h syscall_nr.h
/*
* This file contains the system call numbers.
*/
#define TARGET_NR_restart_syscall 0
#define TARGET_NR_exit 1
#define TARGET_NR_fork 2
#define TARGET_NR_read 3
#define TARGET_NR_wr
www.eeworm.com/read/162573/5540814
c exec.c
#include "iofn.h"
#include "fork.h"
#include "sched.h"
#include "msg.h"
static char outbuf[128];
struct message msg;
void test_send_msg()
{
char *p = 0;
int ret;
while(1){
p =
www.eeworm.com/read/471643/6887722
py process.py
import os
import sys
ret = os.fork()
if ret == 0:
sys.stdout.write('Child pid is %d\n' % (os.getpid()))
else:
os.wait()
sys.stdout.write('Parent pid is %d\n' % (os.getpi
www.eeworm.com/read/415958/11046750
c~ philosem.c~
/*
some error is coming for the fifth fork...output is oppikable
*/
#include
#include
#include
#include
#include
#include
#include
www.eeworm.com/read/103960/15715592
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 = fork()) < 0
www.eeworm.com/read/103200/15740778
c procpollable.c
#include
#include
#include
#include
#include
main()
{
int pid;
char proc[32];
FILE *pfp;
struct pollfd pfd;
if ((pid = fork()) == 0)
www.eeworm.com/read/100585/15870631
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 = fork()) < 0