[26188] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8377 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 1 03:05:47 2005

Date: Thu, 1 Sep 2005 00:05:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 1 Sep 2005     Volume: 10 Number: 8377

Today's topics:
    Re: array question (newbie) <someone@example.com>
    Re: Dealing With Zombies in a Daemon <hal@thresholddigital.com>
        problem installing date::calc on win box <not_valid2@yahoo.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 01 Sep 2005 02:13:58 GMT
From: "John W. Krahn" <someone@example.com>
Subject: Re: array question (newbie)
Message-Id: <GttRe.212103$9A2.133190@edtnps89>

A. Sinan Unur wrote:
> John Bokma <john@castleamber.com> wrote in
> news:Xns96C38803D3FB0castleamber@130.133.1.4: 
> 
>>If most regulars stop replying to posts that don't follow 
>>the posting guidelines, or are not about Perl, a lot of 
>>noise might be gone.
> 
> I agree it is worth a shot.
> 
>>I am going to try it :-D.
> 
> I'll try to follow your lead.

Ah, finally a leader we can all follow.  ;-)


John
-- 
use Perl;
program
fulfillment


------------------------------

Date: Thu, 01 Sep 2005 00:27:36 -0400
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Re: Dealing With Zombies in a Daemon
Message-Id: <3fidnZ2dnZ0n5vjmnZ2dnaUei96dnZ2dRVn-0J2dnZ0@comcast.com>

Dan Wilga wrote:

> In article <HJGdnYDVYcVVP47eRVn-oQ@comcast.com>,
>  Hal Vaughan <hal@thresholddigital.com> wrote:
> 
>> 1) Do the unreaped zombies actually take up memory space, or just a
>> number in the list of PIDs?
> 
> Both. The worst part is that most operating systems have a limit on the
> number of processes that is lower than the range of possible PIDs. When
> you hit this limit, weird things start to happen, because all of the
> various daemons can no longer fork.
> 
>> 2) I understand I can reap by setting $SIG{CHLD} to IGNORE, is that by
>> just
>> using an assignment ($SIG{CHLD} = IGNORE), and how well does it work? 
>> The name makes me think it just ignores zombies without doing anything.
> 
> That's exactly what it does. Technically, it ignores children that
> terminate. They never have time to become zombies.
> 
>> 3) Am I doing something wrong in the routines below, or is there a better
>> way to do this?
> 
> Instead of cleaning up at set intervals, why not just do it in the
> $SIG{CHLD} handler?
> 
> $SIG{CHLD} = \&reaper;
> ...
> sub reaper {
>    1 while( ($waitedpid = waitpid( -1, WNOHANG )) > 0 );
>    $SIG{CHLD} = \&reaper;        # apparently needed on some OSes
> }
> 
>> 4) Why is the program hanging and waiting for the program that is still
>> running?
> 
> That, I'm not so sure about. It could be because your OS is one that
> requires the signal handler to be reset in %SIG every time the signal is
> caught. My example shows this, as does `perldoc perlipc`.

I will check on that.  I forgot that I should have mentioned my OS (Linux).

Thanks!

Hal



------------------------------

Date: Wed, 31 Aug 2005 23:19:40 -0500
From: "news-acct" <not_valid2@yahoo.com>
Subject: problem installing date::calc on win box
Message-Id: <43168181$0$8037$8046368a@newsreader.iphouse.net>

running  ppm install  date::calc   on win xp sp2.
I get the following  reply:::
    Searching for 'date::calc' returned multiple results. Using 'search' ins
    Searching in Active Repositories
      1. Date-Calc           [5.3] Gregorian calendar date calculations
      2. Date-Calc           [5.4] Gregorian calendar date calculations
      3. Date-Calc-Iterator [1.00] Iterate over a range of dates

Is this the correct module for   Win XP?    I can install it using  ppm 
install date-calc.  however, I can not use it

get error msg:
        D:\scram\ner\ko\be> perl date1.pl
        Can't locate date.pm in @INC (@INC contains: C:/Perl/lib 
C:/Perl/site/lib .) at
        BEGIN failed--compilation aborted at date1.pl line 2.

the module does exist in:  C:\Perl\site\lib\Date\Calc.pm

thanks








------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8377
***************************************


home help back first fref pref prev next nref lref last post