linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Micha Feigin <michf@post.tau.ac.il>
To: linux prg <linux-c-programming@vger.kernel.org>
Subject: Re: exit(42)
Date: Mon, 27 Sep 2004 14:39:55 +0200	[thread overview]
Message-ID: <20040927123955.GB7486@luna.mooo.com> (raw)
In-Reply-To: <200409271446.04427.pankajd@myrealbox.com>

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. errno
stores the error value of system calls. If errno is set then the
process wasn't executed at all.

To find the return value in c, you can use waitpid and then
WEXITSTATUS(status).

> Pankaj
> On Friday 24 Sep 2004 5:55 pm, Ron Michael Khu wrote:
> > > linux-c-programming" in the body of a message to
> > > majordomo@vger.kernel.org
> > >More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-c-programming" in the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> -- 
> Only one man in a thousand is a leader of men
> Remaining 999 follow women.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

  reply	other threads:[~2004-09-27 12:39 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     ` Micha Feigin [this message]
2004-09-27 13:54       ` exit(42) Jon Masters
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=20040927123955.GB7486@luna.mooo.com \
    --to=michf@post.tau.ac.il \
    --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).