chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] process-fork: option to kill all but the c


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] process-fork: option to kill all but the current thread in the child process
Date: Sat, 3 Nov 2012 16:42:51 +0100
User-agent: Mutt/1.4.2.3i

On Sun, Oct 28, 2012 at 11:07:30AM -0400, Felix wrote:
> > From: Felix <address@hidden>
> > Subject: [PATCH] process-fork: option to kill all but the current thread in 
> > the child process
> > Date: Sun, 28 Oct 2012 09:10:41 -0400 (EDT)
> > 
> >> This patch allows "process-fork" to kill all existing threads but the 
> >> current
> >> one when running the child process.
> > 
> > Oops, here is an amended version. I forgot to modify types.db. Sorry.
> > 
> 
> Another amended variant. Things can only improve from this point.

Indeed!  It appears that process-fork's type hasn't just changed in the
number of arguments but also the types, which we both overlooked.

The first argument can be #f now, so you can create a fork of a process
with all threads killed, but without running a thunk.  The documentation
was correctly changed, but here's a fix for types.db.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: 0001-Process-fork-s-type-has-changed-in-47b5be71-the-proc.patch
Description: Text document


reply via email to

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