[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Any Perl Gurus Out There?
- Subject: [ale] Any Perl Gurus Out There?
- From: jimpop at yahoo.com (Jim Popovitch)
- Date: Thu Feb 24 07:23:23 2005
- In-reply-to: <[email protected]>
- References: <[email protected]>
The linux kernel will clean up defunct processes when it has time (low
priority). Most likely your loop is "too tight" and injecting some
latency periods will help. Try adding a "sleep 2;" at the bottom of
your loop.
-Jim P.
On Thu, 2005-02-24 at 06:43 -0500, Jonathan Glass wrote:
> I've written a little Perl script to monitor a log file and alert (in
> this case, insert the flagged data into a DB) on a certain pattern. The
> parent process sits in an infinite loop watching the file, and whenever
> the pattern is matched, a child process is forked to do the DB
> insertion. Anyone know the proper way to handle the death of all these
> child processes? If I run a 'ps -aef' on the box while the script is
> running, I see dozens of '<defunct>' processes.
>
> TIA
>
> Jonathan Glass
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale