mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Halesh S <halesh.s@india.com>
To: linux-kernel@vger.kernel.org
Subject: Need inforamtion on execve(2) on ENOMEM
Date: Fri, 1 Aug 2008 13:30:46 +0000 (UTC)	[thread overview]
Message-ID: <loom.20080801T132557-530@post.gmane.org> (raw)


Hi,

I need a bit information regarding execve(2) sys call failure on no memory.

when execve(2) exits with ENOMEM, it will fail to return back to the calling 
program as it receives the SIGKILL from the kernel.

Is it a right behavior that execve() will not return to calling 
program on ENOMEM. As I understood execve(2) will not return only on success.

As errno will be lost, its very diffcult to judge execve(2) status.

If not expected behaviour,  I can provide a testcase for this.

Please let me about this.

Thanks,
Halesh


             reply	other threads:[~2008-08-01 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01 13:30 Halesh S [this message]
2008-08-01 13:35 ` Peter Zijlstra

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=loom.20080801T132557-530@post.gmane.org \
    --to=halesh.s@india.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®