in reply to Calling strace from a perl program
To implement your hang finder, you might have to use some other mechanism to indicate that a program is attempting to obtain a lock. For instance, one method is to change $0 to reflect the state of the program. On many OS's this will be observable via the ps command, e.g.:
sub get_lock { local($0) = "(acquiring lock)"; flock(...); # returning restores previous value of $0 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling strace from a perl program
by jason_s (Acolyte) on Mar 11, 2008 at 23:59 UTC | |
|
Re^2: Calling strace from a perl program
by kyle (Abbot) on Mar 11, 2008 at 21:27 UTC | |
by pc88mxer (Vicar) on Mar 11, 2008 at 21:39 UTC |