On Thu, Apr 14, 2011 at 12:42 AM, Sylvain Ageneau <agen...@gmail.com> wrote:
> I'm compiling ecl with:
> ABI=32 CFLAGS="-m32" LDFLAGS="-m32" ./configure --prefix=/opt/ecl/tmp
> --enable-threads=yes
>
> This test fails about 50% of the time:
>
> (defun safe-system (string)
> ;; (cmpnote "Invoking external command:~% ~A~%" string)
> (let ((result (ext:system string)))
> (unless (zerop result)
> (cerror "Continues anyway."
> "(SYSTEM ~S) returned non-zero value ~D"
> string result))
> result))
>
> (safe-system "sh -c 'echo OK'")
> (si:quit 0)
OS X's system() routine seems to be broken. Our SIGCHLD handler consumes the
return status of the process it starts and thus it fails. I have fixed this
by removing all uses of system(), replacing them with EXT:RUN-PROCESS
Juanjo
--
Instituto de FĂsica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list