Creating a child process on Unix systems?
Posted
by Hakan Svensson
on Stack Overflow
See other posts from Stack Overflow
or by Hakan Svensson
Published on 2010-03-27T22:47:33Z
Indexed on
2010/03/27
22:53 UTC
Read the original article
Hit count: 372
I'm trying to create a child process in another process. I am writing both the programs in C language. First I write a dummy process which will be the child process. What it is doing is only to write a string on the screen. It works well on its own. Then I write another program which will be the parent process. However, I can't make it happen. I'm trying to use fork and execl functions together, but I fail. I also want the child process does not terminate until the parent process terminates.
How should I write the parent process?
Thanks.
© Stack Overflow or respective owner