Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Child process wait father process excute some code then begin execute (http://www.velocityreviews.com/forums/t482122-child-process-wait-father-process-excute-some-code-then-begin-execute.html)

empriser 03-06-2007 02:22 AM

Child process wait father process excute some code then begin execute
 
I write a socket program.
After accept client connection , server fork a child process, how do
keep this execute sequence?
Thanks

pid = fork();
if ( pid > 0 ){
CONFIG CHILD PROCESS TABLE
}else{
WAIT UNTIL father process config child process
table.

begin execute..
}


Ian Collins 03-06-2007 02:24 AM

Re: Child process wait father process excute some code then beginexecute
 
empriser wrote:
> I write a socket program.


Try comp.unix.programmer, sockets are off topic here.

--
Ian Collins.


All times are GMT. The time now is 01:47 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.