Re: [Perl-unix-users] Timing Out a Hanging function...how?

2005-07-28 Thread Arijit Das
No I don't have any control of the subroutine because thatz inside a module called Quota -Arijit world.com> wrote: > Hi Arijit, > > As far as I'm aware SIGnals are the only generic > mechanism you can use to jump out of code from any > point of execution... > > So without knowing the contents

Re: [Perl-unix-users] Timing Out a Hanging function...how?

2005-07-28 Thread Martin Moss
Hi Arijit, As far as I'm aware SIGnals are the only generic mechanism you can use to jump out of code from any point of execution... So without knowing the contents of the subroutine you're running it's not easy to suggest a way for it to work. Perhaps you could post that subroutine? Is it doin

[Perl-unix-users] Timing Out a Hanging function...how?

2005-07-28 Thread Arijit Das
How can I time out a subroutine/function? print "My code is executing...the next sub inokation takes a long time simetimes. SO, I want to ensure that at max it should take 5 secsonds."; my $device_name = Quota::getqcarg($path); I want to timeout Quota::getqcarg($path) but I don't want to use the