patrick carosso wrote:
> I need do start an app from another.
> Now I use then execv system call: the secondary app starts,
> but the first exits! I need the first to go on running!
> How can I do? Is there another system call?
> Thank you!
the exec family of system calls specifically
supercedes the old process with the new
1. check out the man pages for fork(2)
and wait(2) and be very, very careful.
2. check out system(3), which
encapsulates the fork(2)/exec(2)/wait(2)
family of calls for you.
"It is impossible to make anything foolproof
because fools are so ingenious"
- A. Bloch