Re: [Chicken-users] continuing callback confusion

2007-01-17 Thread felix winkelmann
On 1/16/07, Elliot Cuzzillo [EMAIL PROTECTED] wrote: I would very much like to know what I'm doing wrong, so that I can finally call a Scheme function from C. I also think it would be good to add an example of this to the wiki, because, unless I am being very stupid, it is not completely

[Chicken-users] http-server-form-posts warning

2007-01-17 Thread Daishi Kato
Hi, I get warning when I load http-server-form-posts egg. Is anything wrong? Daishi ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2.5 - linux-unix-gnu-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix

[Chicken-users] unable to an environment to inherit macros

2007-01-17 Thread Daishi Kato
Hi, I would like to make an environment in which I can use streams. stream-cons in srfi-40 is surely written as a macro, and is not be able to be included in a new environment. Any workaround for this? Daishi ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( __/

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread felix winkelmann
On 1/17/07, Robin Lee Powell [EMAIL PROTECTED] wrote: On Sun, Jan 14, 2007 at 09:53:00PM -0800, Robin Lee Powell wrote: The only way I see to get the exit value of something I call with (process...) is to use (process-wait), but as I mentioned in another mail, this errors out my entire

Re: [Chicken-users] http-server-form-posts warning

2007-01-17 Thread felix winkelmann
On 1/17/07, Daishi Kato [EMAIL PROTECTED] wrote: Hi, I get warning when I load http-server-form-posts egg. Is anything wrong? Daishi ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2.5 -

Re: Re : [Chicken-users] thread-sleep! for less than a second

2007-01-17 Thread felix winkelmann
On 1/16/07, Daishi Kato [EMAIL PROTECTED] wrote: Or, since timeout for these procedures including thread-sleep! can be a time object, introducing time-milliseconds and milliseconds-time would be sufficient. It's now checked into the darcs repo, here the patch: --- old-chicken/srfi-18.scm

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Robin Lee Powell
On Wed, Jan 17, 2007 at 11:26:27AM +0100, felix winkelmann wrote: On 1/17/07, Robin Lee Powell [EMAIL PROTECTED] wrote: On Sun, Jan 14, 2007 at 09:53:00PM -0800, Robin Lee Powell wrote: The only way I see to get the exit value of something I call with (process...) is to use (process-wait),

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Zbigniew
Robin, Did you try using process-fork to create the process, as Felix suggested? The process can't end until you actually call process-wait. In fact, you normally should call process-wait to properly reap your children. If you are noticing your children are being reaped automatically on your

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Robin Lee Powell
On Wed, Jan 17, 2007 at 01:45:03PM -0600, Zbigniew wrote: Robin, Did you try using process-fork to create the process, as Felix suggested? The process can't end until you actually call process-wait. *hangs head* You know, I knew that, I really did. I'll give it a shot. I the meantime,

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Kon Lovett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You can also try the osprocess egg. It will capture the exit status when the ports are closed. Needs a current Chicken though, = 2.513 Best Wishes, Kon -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin)

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Zbigniew
I would agree with Kon on this---osprocess should work and give you more options. To me the overall problem is that opening both a read and write pipe to a process contains a bit of magic, and is not as easy as one might suppose. For example, many times you are better opening a pseudo tty,

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread John Cowan
Zbigniew scripsit: But you might have more success arguing that process should not ever invoke a wait() call when you close its ports, and instead leave that up to the user. Since you receive the PID from process, you can process-wait on it, and retrieve the error code yourself. This way,

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread Zbigniew
On 1/17/07, John Cowan [EMAIL PROTECTED] wrote: What do people think? Should the wait() be removed from process? Yes, I'd say so; it's not hard to insert a call to wait right after closing the input port. Note that Perl behaves this way w/r/t bi-directional pipes as well, requiring an

[Chicken-users] Re: Removing wait from process

2007-01-17 Thread Kon Lovett
On Jan 17, 2007, at 2:43 PM, John Cowan wrote: Zbigniew scripsit: But you might have more success arguing that process should not ever invoke a wait() call when you close its ports, and instead leave that up to the user. Since you receive the PID from process, you can process-wait on it,

[Chicken-users] Building chicken on Mac OS X

2007-01-17 Thread John Haskey
I'm attempting to build chicken on Mac OS X 10.4.8. In the README under platform issues there is a mention that chicken requires libdl for loading compiled code dynamically. Tragically, opendarwin.org has closed up shop and the dlcompat code is no longer available there. I found a version on

Re: [Chicken-users] Building chicken on Mac OS X

2007-01-17 Thread Zbigniew
Have you tried simply building chicken? libdl is present by default on 10.4. If you're getting an error, post it here. On 1/17/07, John Haskey [EMAIL PROTECTED] wrote: I'm attempting to build chicken on Mac OS X 10.4.8. In the README under platform issues there is a mention that chicken

[Chicken-users] Re: Removing wait from process

2007-01-17 Thread felix winkelmann
On 1/18/07, Kon Lovett [EMAIL PROTECTED] wrote: A couple of points: 1) 'process-wait' in posixunix throws an exception upon an error but doesn't in posixwin. (Think both should throw exception.) Makes sense. 2) 'process' waits automatically in posixunix but not in posixwin. (Think

Re: [Chicken-users] Can't get exit values of (process...)?

2007-01-17 Thread felix winkelmann
On 1/17/07, Kon Lovett [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You can also try the osprocess egg. It will capture the exit status when the ports are closed. Needs a current Chicken though, = 2.513 Kon, would it be possible to isolate the code for