Hi,
The new forked shell is defunct, that is correct.
The defunct stays so forever. The program ends but the defunct process
does not, as you said.
After doing this 4 times (my number of children) ser stops responding
to any new messages.
Best,
Dimo
On 1/10/07, Daniel-Constantin Mierla <daniel(a)voice-system.ro> wrote:
Hello,
On 01/10/07 15:19, Dimo wrote:
Hi,
I am having trouble with msg_exec. I want it to start the execution of
a command which may wait for some time but i do not need openser to
wait for the command to end in order to proceed with script execution.
I tried this:
msg_exec("command &");
and this makes openser process hang forever with a defunct child.
openser should
not hang. '&' make the shell to fork a new openser
process to execute the command, and that becomes defunct when the
command execution ends.
Is
there any way someone may suggest that i can make openser run a
command and not wait for it to end?
nohup does not do the trick also.
Apart of defunct process, does the execution of
the command ends? Could
openser still process new messages?
Cheers,
Daniel
Best,
Dimo
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users