Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Child process wait father process excute some code then begin execute

Reply
Thread Tools

Child process wait father process excute some code then begin execute

 
 
empriser
Guest
Posts: n/a
 
      03-06-2007
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..
}

 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      03-06-2007
empriser wrote:
> I write a socket program.


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

--
Ian Collins.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pexpect on windows - child process of another child process - quickquestion Z W Python 0 03-09-2013 10:00 PM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM
Results from child window submit into parent window, then child closes -- How To? Spammay Blockay Javascript 1 02-04-2005 12:47 PM
Pass from parent to child, then update parent with child value... Noel Dolan Javascript 0 07-18-2004 05:52 PM
Excute code from treeview node click Mark Goldin ASP .Net Web Controls 11 02-03-2004 11:25 AM



Advertisments