Child process wait father process excute some code then begin execute

Discussion in 'C Programming' started by empriser, Mar 6, 2007.

  1. empriser

    empriser Guest

    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..
    }
    empriser, Mar 6, 2007
    #1
    1. Advertising

  2. empriser

    Ian Collins Guest

    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.
    Ian Collins, Mar 6, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Excute code from treeview node click

    Mark Goldin, Jan 25, 2004, in forum: ASP .Net Web Controls
    Replies:
    11
    Views:
    450
    Mark Goldin
    Feb 3, 2004
  2. Replies:
    0
    Views:
    259
  3. Noel Dolan
    Replies:
    0
    Views:
    216
    Noel Dolan
    Jul 18, 2004
  4. Spammay Blockay
    Replies:
    1
    Views:
    401
    Dietmar Meier
    Feb 4, 2005
  5. Z W
    Replies:
    0
    Views:
    164
Loading...

Share This Page