|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Detect a hung processby fauria (Deacon) |
| on Apr 12, 2005 at 17:10 UTC ( [id://447179]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Hi!, If i understood well your post, you need to look into a program internals (stack, pc, etc) to ensure it has not hung. I also understand it is propietary software, orherwise it would be much easier to modify directly that program. If this is right i would use directly a process or system call debugger running in top of your program, like ptrace or strace, to see what is happening during execution, and use its output to kill the process if something goes wrong. You have a Perl interface to ptrace in CPAN. Hope this helps.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||