Changes between Initial Version and Version 1 of Ticket #13795


Ignore:
Timestamp:
Nov 23, 2017, 4:07:52 PM (7 years ago)
Author:
pulkomandy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13795 – Description

    initial v1  
    2727Basically, flock is not owned by the team, but by the file descriptor. This also explains the behavior with regard to fork().
    2828
    29 We are currently using a session_id (pid_t) as an identifier for locks. Could we switch to using the file descriptor number instead, or would that break something?
     29We are currently using a session_id (pid_t) as an identifier for locks. Could we switch to using the file descriptor number instead, or would that break something? (this would mean the process should keep the fd opened until the lock is released, and should release using the same fd used for locking).