chickadee » chicken » file » 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.

NOTE: On native Windows builds (all except cygwin), this procedure is unimplemented and will raise an error.