[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: #69: chicken-install does not stop on error
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] Re: #69: chicken-install does not stop on error |
Date: |
Fri, 14 Aug 2009 06:59:46 -0000 |
#69: chicken-install does not stop on error
--------------------------+-------------------------------------------------
Reporter: zbigniew | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: build system | Version: 4.1.x
Keywords: |
--------------------------+-------------------------------------------------
Comment(by zbigniew):
Yep, that's exactly the problem. Return value of (system) is raw return
value of waitpid(2) which is not appropriate to pass to (exit) -- as the
return value is in bits 8-15, whereas exit masks these off.
There is a recipe for obtaining the exact exit status on UNIX at:
http://chicken.wiki.br/man/4/Unit%20library#system
Probably easier is to have csc return a fixed exit status of 1 (or
whatever) if a subcommand fails, since we do not have official methods to
get this.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/69#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.