G
gabriele.ravanelli
Hi, I've got a problem whit fork() and system()
I use the fork() function to fork my program and inside the code I use
the funtion sytem() to call a program and to get the return status of
this one.
the problem is that the function system don't work if I use the fork()
before. In this case the ret valute is always -1. Why system() works
wrong?
Thaks, Gabriele
I use the fork() function to fork my program and inside the code I use
the funtion sytem() to call a program and to get the return status of
this one.
the problem is that the function system don't work if I use the fork()
before. In this case the ret valute is always -1. Why system() works
wrong?
Thaks, Gabriele