in reply to It works, and then it doesn't...connecting to a daemon over the net
It's an applet, the applet has a 'run' button, if I re-send a request before the first is finished, the java button doesnt 'de-click' until the first is finished and the second has started, thus it looks like it hangs.Well, I meant the Perl daemon, but you can use the technique in each program. It's not clear where the problem is. The more output, the better.when you say 'through your program', do you mean the daemon, or the program the daemon is trying to run?
I should have read your question more closely. Is the program "/usr/local/bin/monster" interacting with the XML-RPC client or does it just go off and do its own thing? If it never sends an XML-RPC response back, you may want to close STDIN, STDOUT and maybe other open files after you fork. You can do it in /usr/local/bin/monster but it would be better to do it before you exec(). (You can also set close-on-exec if you know how to do that.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: It works, and then it doesn't...connecting to a daemon over the net
by seaver (Pilgrim) on Jun 13, 2003 at 18:56 UTC |