From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18151 invoked by alias); 16 May 2007 14:59:07 -0000 Received: (qmail 18093 invoked from network); 16 May 2007 14:58:53 -0000 Received: from unknown (69.17.117.10) by sourceware.org with QMTP; 16 May 2007 14:58:53 -0000 Received: (qmail 21641 invoked from network); 16 May 2007 14:58:52 -0000 Received: from dsl027-162-100.atl1.dsl.speakeasy.net (HELO otter.localdomain) ([216.27.162.100]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 16 May 2007 14:58:52 -0000 Received: from localhost (jmills@localhost) by otter.localdomain (8.11.6/8.11.6) with ESMTP id l4GEwru02748 for ; Wed, 16 May 2007 14:58:54 GMT Date: Wed, 16 May 2007 15:05:00 -0000 From: John Mills Reply-To: John Mills To: ecos-discuss@ecos.sourceware.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Newbie-Q: Clean exits from tests and examples X-SW-Source: 2007-05/txt/msg00080.txt.bz2 Hello - I'm getting started with the eCos-2.0 'synthetic' target and have a couple of beginner's questions. I used the command line setup: $ ecosconfig new linux default [edited 'ecos.ecc' tools prefix to match my installation] $ ecosconfig tree $ make $ make tests All this went fine. I copied the 'ecos-2.0/examples' directory into my scratch directory and can built the executables, which also went fine: $ cd examples $ make INSTALL_DIR= The 'install/.../tests' like 'wallclock' run and exit fine. The 'examples' run fine, but don't exit (i.e., 'hello' prints its output then sits until I kill it with '^C'). $ ~/sandbox/ecos/examples> ./hello Hello, eCos world! [and here we stay until I issue a '^C'] Question: How should 'examples/hello.c' be structured to run and exit, returning cleanly to the parent Linux shell, or how should I invoke it? Thanks. - John Mills john.m.mills@alum.mit.edu -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss