Search:

Type: Posts; User: itCbitC

Search: Search took 0.04 seconds.

  1. Replies
    22
    Views
    32,804

    That being the case I don't see why you need a...

    That being the case I don't see why you need a programmatic solution when a scripted one will do just fine.
    Use a shell to script this process and run fuser on the file periodically to see if ftp is...
  2. Replies
    22
    Views
    32,804

    This isn't the first time fcntl() has me stumped...

    This isn't the first time fcntl() has me stumped but I didn't realize it would be going "against-the-grain" so much. The code I have contradicts everything in the man pages. I duplicated your test...
  3. Replies
    22
    Views
    32,804

    Request for exclusive lock will fail if file...

    Request for exclusive lock will fail if file descriptor is not opened with write access.
    Instead of trying to get info about a lock on the file try to set a lock on it.
    The return value of fcntl()...
  4. Replies
    22
    Views
    32,804

    Post the code snippet that calls fcntl(); P2...

    Post the code snippet that calls fcntl(); P2 needs to open "out2.txt" for writing in exclusive mode and methinks you are trying to get a shared lock instead.
Results 1 to 4 of 4