- or download this
#!/usr/bin/perl -w
use strict;
...
};
print "traceout is $trace_out";
- or download this
#!/usr/bin/perl
use Fcntl ':flock';
open FH, "file.txt" ;
flock FH, LOCK_EX or die "couldn't lock";
while (true) {};
- or download this
>./locker.pl &
[1] 17289
...
>strace -q -p17289
>strace -q -p17290
flock(3, LOCK_EX <unfinished ...>
- or download this
./hang_finder 17290
traceout is
- or download this
traceout is flock(3, LOCK_EX