Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Lightweight Solution To "Only 1 Process Running" On AIX

by Bloodnok (Vicar)
on May 01, 2009 at 15:11 UTC ( [id://761307]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >cat tst.pl 
    
    ...
    
    open SELF, "< $0" or die ;
    flock SELF, LOCK_EX | LOCK_NB  or die "$!";
    
  2. or download this
    >perl tst.pl 
    A file descriptor does not refer to an open file. at tst.pl line 7.
    
  3. or download this
    .
    .
    ...
    389372: kfcntl(2, F_GETFL, 0x00000008)          = 1
    389372: close(3)                    = 0
    389372: kfcntl(2, F_GETFL, 0x00000008)          = 1
    
  4. or download this
    389372: fstatx(3, 0x30020848, 128, 010)         = 0
    389372: kfcntl(3, F_SETFD, 0x00000001)          = 0
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://761307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found