chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Any way to get the scsh-process egg working on Windo


From: Peter Bex
Subject: Re: [Chicken-users] Any way to get the scsh-process egg working on Windows?
Date: Wed, 7 Aug 2013 19:22:30 +0200
User-agent: Mutt/1.4.2.3i

On Wed, Aug 07, 2013 at 12:18:41PM -0400, Omar Antolín Camarena wrote:
> Thanks, Peter! I agree that it wouldn't be worth adding code for
> special cases that can be run without forking. I thought that maybe I
> would right my own version of run for, say, a single pipe form, but I
> think I'll take John Cowan's advice and just build Chicken on cygwin.

That's probably the easiest and sanest approach.  If it makes you feel
better, SCSH itself also runs only on Unix-like systems, and relies on
cygwin to support Windows.

> As for getting fork-like functionality on Windows, one way of course
> is to use cygwin's implementation of fork on top of the Windows API,
> using CreateProcess(). I don't know the details at all, but I remember
> reading that it's a bit of work, since cygwin has to copy the state of
> the current process to the new one (making it slower than fork() on
> Unix which uses copy-on-write). So I think it is perfectly reasonable
> to declare that Chicken users on Windows that want process-fork must
> use cygwin.

Thanks for explaining how this works.  Hopefully someone will attempt
this at some point in time, but for now we'll have to make do with
pointing people at cygwin.

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

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