代码搜索:waitpid
找到约 797 项符合「waitpid」的源代码
代码结果 797
www.eeworm.com/read/290808/3971132
c sig_chld_waitpid.c
#include "unp.h"
void
sig_chld(int signo)
{
pid_t pid;
int stat;
while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0) {
printf("child %d terminated\n", pid);
}
return;
}
www.eeworm.com/read/290808/3971177
c sig_chld_waitpid.c
#include "unp.h"
void
sig_chld(int signo)
{
pid_t pid;
int stat;
while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0) {
/* printf("child %d terminated\n", pid); */
}
return;
}
www.eeworm.com/read/112441/15485307
c sig_chld_waitpid.c
#include "unp.h"
void
sig_chld(int signo)
{
pid_t pid;
int stat;
while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0) {
printf("child %d terminated\n", pid);
}
return;
}
www.eeworm.com/read/124910/6038212
c system.c
/* SCO has a bug where `waitpid' will never return if SIGCHLD is blocked.
They have acknowledged that this is a bug but I have not seen nor heard
of any forthcoming fix. */
#define WAITPID_CAN
www.eeworm.com/read/226770/14452748
h2 haswaitp.h2
/* Public domain. */
/* sysdep: +waitpid */
#define HASWAITPID 1