Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I kill a stuck lock on a file?

by ehdonhon (Curate)
on Oct 31, 2002 at 00:07 UTC ( [id://209287]=note: print w/replies, xml ) Need Help??


in reply to How do I kill a stuck lock on a file?

Can you post sample code which demonstrates the problem? Whenever all of the copies of the file descriptor for the file you are working on are closed, the kernel should be cleaning up that lock for you.

  • Comment on Re: How do I kill a stuck lock on a file?

Replies are listed 'Best First'.
Re: Re: How do I kill a stuck lock on a file?
by Anonymous Monk on Nov 04, 2002 at 04:17 UTC
    I tried creating a simple test program with open(), flock() and sleep() but I can't reproduce the error. Grrr...

    When I run the original program, though, I still get the same error. All the hosts are NFS mounting the filesystem on which the file I'm trying to lock, reside.

    This could posssibly be a bug in Solaris8 since if I run the same program under Linux, it runs without the error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found