Re: SOLVED! (was: Re: What is wrong with this query?)

2002-12-26 Thread Mark
- Original Message - From: Mike Wexler [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, December 25, 2002 6:43 PM Subject: Re: SOLVED! (was: Re: What is wrong with this query?) This is getting a little bit away from mysql You are right, Mike, and, after this post, I will take

Re: SOLVED! (was: Re: What is wrong with this query?)

2002-12-25 Thread Mark
- Original Message - From: Rick Robinson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 12:03 PM Subject: RE: SOLVED! (was: Re: What is wrong with this query?) It's not a true daemon ... No. It is only called a zombie if the child was brutally cut off from the

Re: SOLVED! (was: Re: What is wrong with this query?)

2002-12-25 Thread Mike Wexler
This is getting a little bit away from mysql but the easy way to do this is: use Proc::Daemon;# Available at a CPAN near you :-) ... Proc::Daemon::Init; which takes care of all the details of daemonizing your program. But this still doesn't explain (at least to me) the lost connection.

RE: SOLVED! (was: Re: What is wrong with this query?)

2002-12-24 Thread Rick Robinson
It's not a true daemon...Mike's comment on using a wait or waitpid is valid. If you're interested, read up on daemon processes in APUE (chap. 13) from Stevens. Your process is still associated with a terminal and is not the process group leader and is not the session leader. I highly recommend

SOLVED! (was: Re: What is wrong with this query?)

2002-12-23 Thread Mark
- Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 3:13 PM Subject: What is wrong with this query? For month now I have been plagued by the Lost connection to MySQ server during query in a Perl program of mine that connects locally

Re: SOLVED! (was: Re: What is wrong with this query?)

2002-12-23 Thread Michael T. Babcock
I do not understand why. It seems that the parent exit-ing while the child is doing stuff, makes the child lose its query to MySQL (always more or less at the same point). And this is really strange; for the parent has nothing to do with MySQL. It is the child who makes the connection and does

Re: SOLVED! (was: Re: What is wrong with this query?)

2002-12-23 Thread Mark
- Original Message - From: Michael T. Babcock [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 8:14 PM Subject: Re: SOLVED! (was: Re: What is wrong with this query?) It seems that the parent exit-ing while the child is doing stuff, makes