From: Jon Masters <jonmasters@gmail.com>
To: linux prg <linux-c-programming@vger.kernel.org>
Subject: Re: exit(42)
Date: Mon, 27 Sep 2004 14:54:35 +0100 [thread overview]
Message-ID: <35fb2e5904092706547163c3fd@mail.gmail.com> (raw)
In-Reply-To: <20040927123955.GB7486@luna.mooo.com>
On Mon, 27 Sep 2004 14:39:55 +0200, Micha Feigin <michf@post.tau.ac.il> wrote:
> On Mon, Sep 27, 2004 at 02:46:03PM +0530, Pankaj wrote:
> > hi,
> > I guess the value is stored in a global var called "errno".
> If this is about the return value, it is not stored in errno.
Indeed. It's stored in exit_code within the process task_struct, along
with other useful data about the terminated process and is the reason
that process descriptors remain around.
When you call wait4 or one of the wait functions, then this gets cleaned up.
Cheers,
Jon.
next prev parent reply other threads:[~2004-09-27 13:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-24 11:57 exit(42) Ankit Jain
2004-09-24 12:13 ` exit(42) Alphex Kaanoken
2004-09-24 12:25 ` exit(42) Ron Michael Khu
2004-09-27 9:16 ` exit(42) Pankaj
2004-09-27 12:39 ` exit(42) Micha Feigin
2004-09-27 13:54 ` Jon Masters [this message]
2004-09-24 12:29 ` exit(42) Luciano Moreira - igLnx
2004-09-24 16:33 ` exit(42) Jan-Benedict Glaw
2004-09-25 1:13 ` exit(42) Micha Feigin
2004-09-25 10:57 ` exit(42) rinku rathore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35fb2e5904092706547163c3fd@mail.gmail.com \
--to=jonmasters@gmail.com \
--cc=jonathan@jonmasters.org \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).