代码搜索结果
找到约 12,494 项符合
PID 的代码
ch11.bind_debug.perl
#!/usr/bin/perl
#
# Turn name server debugging on or off.
#
# To turn off debugging, use "binddebug 0"
# To turn on debugging to level 3, use "binddebug 3"
# Find the process ID in /etc/named.pid.
wait.c
#include
#include
#include
#include "rc.h"
#include "jbwrap.h"
bool forked = FALSE;
static int rc_wait(int *);
typedef struct Pid Pid;
static struct Pid {
int pi
sigchldwaitpid.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;
}
daemon_init.c
#include "unp.h"
#include
#define MAXFD 64
extern int daemon_proc; /* defined in error.c */
void
daemon_init(const char *pname, int facility)
{
int i;
pid_t pid;
if ( (pid = Fork())
sigchldwaitpid.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;
}
strclifork.c
#include "unp.h"
void
str_cli(FILE *fp, int sockfd)
{
pid_t pid;
char sendline[MAXLINE], recvline[MAXLINE];
if ( (pid = Fork()) == 0) { /* child: server -> stdout */
while (Readline(sockfd, re
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;
}
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;
}
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;
}
child04.c
#include "unp.h"
pid_t
child_make(int i, int listenfd, int addrlen)
{
pid_t pid;
void child_main(int, int, int);
if ( (pid = Fork()) > 0)
return(pid); /* parent */
child_main(i, listenfd, ad