A
askmore
Could any one tell me what is the best way to run a command in
background in C?
I have tried something like the following:
system("perl t.pl &");
It works fine for the system call, but I noticed that there is a
problem with the server socket I created right before the system call,
I couldn't close that socket anymore after the system call. If I remove
the "&" in the system call, the code works fine. (I am working on a
redhat linux system)
Can anyone share some light on it?
Thanks.
background in C?
I have tried something like the following:
system("perl t.pl &");
It works fine for the system call, but I noticed that there is a
problem with the server socket I created right before the system call,
I couldn't close that socket anymore after the system call. If I remove
the "&" in the system call, the code works fine. (I am working on a
redhat linux system)
Can anyone share some light on it?
Thanks.