Mail Archives: djgpp/1998/08/23/14:20:32
On Thu, 20 Aug 1998, M Joshua Ryan wrote:
> I haven't tested this, but you could try
>
> system("exit");
You *should* have tested that, because it doesn't work. The code you
suggest will have no effect, since the EXIT command at most causes the
*inferior* shell to terminate, but it does nothing to the *parent*
shell from which the calling program was invoked.
In fact, DJGPP's version of `system' knows that EXIT has no effect, so
it doesn't even invoke an inferior shell, it just returns immediately
to the caller.
- Raw text -