代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/335362/12534633
c child.c
#include "apue.h"
#include
static void sig_cld(int);
int
main()
{
pid_t pid;
if (signal(SIGCLD, sig_cld) == SIG_ERR)
perror("signal error");
if ((pid = fork()) < 0) {
perror("fo
www.eeworm.com/read/335362/12535022
6 fig10.6
#include "apue.h"
#include
static void sig_cld(int);
int
main()
{
pid_t pid;
if (signal(SIGCLD, sig_cld) == SIG_ERR)
perror("signal error");
if ((pid = fork()) < 0) {
perror("fo
www.eeworm.com/read/147608/12542762
c wait.c
#include
#include
#include
#include
int main()
{
pid_t pid;
char *message;
int n;
int exit_code;
printf("fork program starting\n")
www.eeworm.com/read/133667/14030931
c wait.c
#include
#include
#include
#include
int main()
{
pid_t pid;
char *message;
int n;
int exit_code;
printf("fork program starting\n")
www.eeworm.com/read/133537/14036716
readme
Web-FTP Version 2.2.1
Web-FTP only works on systems with fork(), i.e. not Windows or
Macintosh. Sorry.
Web-FTP is an http based ftp portal which allows you to provide
secure web-based file managemen
www.eeworm.com/read/113863/15446285
c daemon_init.c
#include "unpipc.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
www.eeworm.com/read/113863/15446385
c fduplex.c
#include "unpipc.h"
int
main(int argc, char **argv)
{
int fd[2], n;
char c;
pid_t childpid;
Pipe(fd); /* assumes a full-duplex pipe (e.g., SVR4) */
if ( (childpid = Fork()) == 0) { /* child
www.eeworm.com/read/100584/15870860
c daemon_init.c
#include "unpipc.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
www.eeworm.com/read/100584/15870960
c fduplex.c
#include "unpipc.h"
int
main(int argc, char **argv)
{
int fd[2], n;
char c;
pid_t childpid;
Pipe(fd); /* assumes a full-duplex pipe (e.g., SVR4) */
if ( (childpid = Fork()) == 0) { /* child
www.eeworm.com/read/192259/8390756
c ptyfork.c
#include
#include
#ifndef TIOCGWINSZ
#include /* 44BSD requires this too */
#endif
#include "ourhdr.h"
pid_t
pty_fork(int *ptrfdm, char *slave_name,