代码搜索:waitpid
找到约 797 项符合「waitpid」的源代码
代码结果 797
www.eeworm.com/read/367730/2831340
patch 730-debian_gdb-fix-tracefork-check.patch
Status: submitted for comments
2004-11-12 Daniel Jacobowitz
* linux-nat.c (my_waitpid): New function.
(linux_test_for_tracefork): Make more robust and verbose. Take
an ORIGINA
www.eeworm.com/read/398611/7933710
cc child.cc
#include
using namespace std;
#include
#include
#include
void func(int sig)
{
signal(sig, func);
int info;
int pid;
while((pid=waitpid(-1,&info,WNOHA
www.eeworm.com/read/129924/5966294
h wait.h
#ifndef _SYS_WAIT_H_
#define _SYS_WAIT_H_
#define WNOHANG 1 /* dont hang in wait */
#define WUNTRACED 2 /* tell about stopped, untraced children */
pid_t wait __P_((int *));
pid_t waitpid _
www.eeworm.com/read/196550/5101840
h sysname.h
char *sys_name[] = {
"NONE",
" __NR_exit ",
" __NR_fork ",
" __NR_read ",
" __NR_write ",
" __NR_open ",
" __NR_close ",
" __NR_waitpid ",
" __NR_creat ",
" __NR_link ",
" __NR_unlink ",
"
www.eeworm.com/read/100039/6276045
h port_after.h
/* This top portion was based on the HPUX port and is mostly unaltered. */
#ifndef PORT_AFTER_H
#define PORT_AFTER_H
#undef HAVE_SA_LEN
#define USE_POSIX
#define POSIX_SIGNALS
#define USE_WAITPID
#un
www.eeworm.com/read/435701/1861995
h wait.h
#ifndef __WAIT_H
#define __WAIT_H
#pragma lib "/$M/lib/ape/libap.a"
/* flag bits for third argument of waitpid */
#define WNOHANG 0x1
#define WUNTRACED 0x2
/* macros for examining status returned *
www.eeworm.com/read/412321/2171051
c pid.c
#include
#include
#include
void SigChild(int nSignal)
{
pid_t pid_t;
int nState;
while ((pid_t = waitpid(-1, &nState, WNOHANG)) > 0) ;
signal(SIGCLD, SigChild);
www.eeworm.com/read/359563/2975092
c pid.c
#include
#include
#include
void SigChild(int nSignal)
{
pid_t pid_t;
int nState;
while ((pid_t = waitpid(-1, &nState, WNOHANG)) > 0) ;
signal(SIGCLD, SigChild);
www.eeworm.com/read/238485/13882258
c wait_pid.c
#include
#include
#include "error.h"
#include "haswaitp.h"
#ifdef HASWAITPID
int wait_pid(wstat,pid) int *wstat; int pid;
{
int r;
do
r = waitpid(pid,wstat,0);
www.eeworm.com/read/100039/6276023
h port_after.h
#define CAN_RECONNECT
#define USE_POSIX
#define POSIX_SIGNALS
#define USE_UTIME
#define HAVE_SETVBUF
#define USE_WAITPID
#define HAVE_GETRUSAGE
#define HAVE_FCHMOD
#define NEED_PSELECT
#define _TIMEZ