chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Weird behaviour in process / output / close-output-port


From: Alejandro Forero Cuervo
Subject: [Chicken-users] Weird behaviour in process / output / close-output-port
Date: Tue, 30 May 2006 21:11:42 -0500
User-agent: Mutt/1.5.9i

The following code is giving me a strange behaviour:

    (use posix)

    (let loop ()
      (receive (in out pid)
               (process "foo")
        (newline out))
      (loop))

I expect it to loop indefinitely (nevermind the lack of a call to
process-wait) but it terminates the csi process (!):

    $ csi -script test.scm ; echo $?
    bash: foo: command not found
    bash: foo: command not found
    bash: foo: command not found
    bash: foo: command not found
    bash: foo: command not found
    141
    $

Weird, csi terminates with a return code of 141 after a few iterations
(often just at the first).  I'm guessing there's a race between the
two process that at some point causes a crash.

I'm using Chicken 2.3 on Debian GNU/Linux.  In case its relevant, I'm
using a 2.6.11 kernel with glibc 2.3.6.

Thanks.

Alejo.
http://azul.freaks-unidos.net/

Ps: Sorry for the broken In-reply-to header in my previous message.




reply via email to

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