Help for this page

Select Code to Download


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