From: Samuel Tardieu <sam@inf.enst.fr>
To: emery@grebyn.com (David Emery)
Subject: Re: Ada Equivalent of "system()" in C?
Date: 1996/04/17
Date: 1996-04-17T00:00:00+00:00 [thread overview]
Message-ID: <qw6hguibyme.fsf@gargantua.enst.fr> (raw)
In-Reply-To: dewar.829629003@schonberg
>>>>> "David" == David Emery <emery@grebyn.com> writes:
David> In other words, this takes a single string parameter, the
David> command to execute, and returns an int value if the command was
David> succesfully started. Note that the return value is NOT the
David> return value of the command, but rather of the fork() that is
David> used to set up execution of the command.
I think you're wrong; if I remember well, the return value of system()
is a value composed of the exit status of the shell command and the
result of wait() (which is used to wait for child termination), whith
a special case of -127 when the command couldn't be launched due to
the lack of /bin/sh.
Sam
--
"La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette"
Charles Baudelaire
next prev parent reply other threads:[~1996-04-17 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-15 0:00 Ada Equivalent of "system()" in C? Dave Sparks
1996-04-16 0:00 ` Robert Dewar
1996-04-17 0:00 ` Samuel Tardieu [this message]
1996-04-17 0:00 ` Bob Kitzberger
1996-04-16 0:00 ` David Emery
1996-04-17 0:00 ` Keith Thompson
1996-04-17 0:00 ` Robert Dewar
1996-04-22 0:00 ` Sandy Wise
1996-04-19 0:00 ` Ron J Theriault
1996-04-16 0:00 ` Samuel Tardieu
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox