linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* execv fails with EFAULT
@ 2007-03-07 11:54 Prasanta Sadhukhan
  2007-03-07 12:46 ` Steve Graegert
  2007-03-07 14:20 ` Mathieu Dube
  0 siblings, 2 replies; 6+ messages in thread
From: Prasanta Sadhukhan @ 2007-03-07 11:54 UTC (permalink / raw)
  To: linux-c-programming

Hi,

When I tried the following program
void test4()
{
    printf("doing execv\n");
    if(execv("/bin/ls", "-l") == -1)
        printf("exec failed with errno %d\n", errno);
    else
        printf("exec succeed\n");
}

I see that execv is failing with errno 14(EFAULT).
I am using RH9 2.6 kernel. Does anybody know what is the cause?

Regards
Prasanta


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-07 16:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 11:54 execv fails with EFAULT Prasanta Sadhukhan
2007-03-07 12:46 ` Steve Graegert
2007-03-07 13:14   ` Prasanta Sadhukhan
2007-03-07 13:50     ` Steve Graegert
2007-03-07 16:58     ` Glynn Clements
2007-03-07 14:20 ` Mathieu Dube

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).