* Need inforamtion on execve(2) on ENOMEM
@ 2008-08-01 13:30 Halesh S
2008-08-01 13:35 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: Halesh S @ 2008-08-01 13:30 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Need inforamtion on execve(2) on ENOMEM
2008-08-01 13:30 Need inforamtion on execve(2) on ENOMEM Halesh S
@ 2008-08-01 13:35 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2008-08-01 13:35 UTC (permalink / raw)
To: Halesh S; +Cc: linux-kernel
On Fri, 2008-08-01 at 13:30 +0000, Halesh S wrote:
> 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.
It only does the SIGKILL bit when it runs out of memory after the old
programm is dead and the new programm isn't quite running yet.
So there is no calling programm to return to.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-01 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-01 13:30 Need inforamtion on execve(2) on ENOMEM Halesh S
2008-08-01 13:35 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome