[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Bug in posix-module: file-lock

From: Johannes Groedem
Subject: [Chicken-users] Bug in posix-module: file-lock
Date: Mon, 08 Sep 2003 04:36:53 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (berkeley-unix)

There seems to be a bug in file-lock in posix.scm.  When attempting to
get a lock on an output-port, it will call fcntl with flock.l_type set
to FD_RDLCK instead of FD_WRLCK.  (I straced the program, having some
problems finding my way around the source.)  Getting locks for
input-ports works as it should, though.

What's strange is that from a quick glance at posix.scm, the code
seems to be correct.

(Not sure how much of this really matters, but: This is Chicken 1.17
running on Linux/x86 2.4.20 compiled with GCC 3.3.2, using glibc

Johannes Groedem <OpenPGP: 5055654C>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]