chickadee » posix » file-test-lock

file-test-lock PORT #!optional START LENprocedure

Tests whether the file associated with PORT is locked for reading or writing (according to whether PORT is an input- or output-port) and returns either #f or the process-id of the locking process.