Unix processes and forking

Discussion in 'C' started by Unix>Winderz, Aug 2, 2010.

  1. Unix>Winderz

    Unix>Winderz New Member

    Joined:
    Aug 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Ok well how do keep forking back in my main program.

    So I have this project I need to get done. Main program is in infinite loop unless CTRL^D. User enters a cmd and main forks child to run it, then prompts for input.

    My program does this once then ends. What about Unix processes am I not getting?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    You forgot to paste your code. I can't see your screen from here, or read your mind.

    If you want us to have a look at your code then you'll have to post it with code tags.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice