[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #1134: with-input-from-pipe should be rewritten so it
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #1134: with-input-from-pipe should be rewritten so it does not block |
Date: |
Wed, 25 Jun 2014 10:05:57 -0000 |
#1134: with-input-from-pipe should be rewritten so it does not block
-------------------------------------------------------------+--------------
Reporter: ckeen | Owner:
Type: enhancement | Status:
new
Priority: not urgent at all | Milestone:
someday
Component: core libraries | Version:
4.9.x
Keywords: posix with-input-from-pipe pclose block threads |
-------------------------------------------------------------+--------------
The current implementation of with-input-from-pipe is straightforward and
uses the underlying POSIX functions popen and pclose.
However the usage of pclose will wait for the child process of the pipe to
exit and thus will hang the whole chicken process.
This gets in the way if threading is used.
Therefore it should be implemented in a way that we explicitly wait for
the SIGCHLD to arrive in the scheduler. Maybe a thread-wait-for-signal
mechanism needs to be implemented.
This will complicate a lot of things so I will put this on the back burner
for now.
--
Ticket URL: <http://bugs.call-cc.org/ticket/1134>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-janitors] #1134: with-input-from-pipe should be rewritten so it does not block,
Chicken Trac <=