Need inforamtion on execve(2) on ENOMEM

From: Halesh S
Date: Fri Aug 01 2008 - 09:31:17 EST



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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/