Skip to content

multi-threaded server using pcntl_fork #31

@GoogleCodeExporter

Description

@GoogleCodeExporter
give a point for pcntl_fork.

where is the position to insert pcntl_fork?

I don't get it well.

$pid = pcntl_fork();
if($pid==-1){
//failed
}
elseif($pid){
//parent
}
else{
//child
}

Original issue reported on code.google.com by snjn...@gmail.com on 20 Nov 2012 at 3:51

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions