Re: Problem using poule, zero? error in scsh-process

Peter Bex via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <aBRrtv-3l242mtvp@doggett>
On Thu, May 01, 2025 at 08:16:24PM +0000, Pietro Cerutti via Chicken-users wrote:
> On Apr 30 2025, 16:01 +0000, Matt Welland via Chicken-users <[email protected]> wrote:
> [-- Type: text/plain; charset=UTF-8, Encoding: 7bit, Size: 1.2K --]
> > Inserting the example code from poule into my existing project gives me the
> > error below. I'm compiling statically but that doesn't seem to be a problem
> > as I compiled the poule example statically and it worked fine. Everything
> > else in my program works fine. I'll work around this for now but I can try
> > any suggestions provided or dig deeper with any provided advice. Thanks.
> > 
> > Error: (zero?) bad argument type - not a number: #f
> 
> poule uses (zero?) with the first value returned by (process-wait):
> https://code.ptrcrt.ch/poule/file?ci=v0.1.1&name=poule.scm&ln=253-254
> 
> scsh-process substitutes (process-wait) with its own implementation:
> https://api.call-cc.org/5/doc/scsh-process#sec:Process_reaping
> https://code.more-magic.net/scsh-process/tree/scsh-process.scm?h=chicken-5#n125

It doesn't set! it, it just exports an identifier by the same name.
Since poule is properly modularized, that shouldn't be a problem.

I have to wonder if there's a bug with static compilation though.

Matt: Do the scsh-process and poule tests pass without problems in your
CHICKEN installation?  And have you tried dynamically linking to see if
the bug goes away?

Cheers,
Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.