From: Prasanta Sadhukhan <Prasanta.Sadhukhan@Sun.COM>
To: linux-c-programming@vger.kernel.org
Subject: execv fails with EFAULT
Date: Wed, 07 Mar 2007 17:24:32 +0530 [thread overview]
Message-ID: <45EEA7F8.5080908@sun.com> (raw)
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
next reply other threads:[~2007-03-07 11:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 11:54 Prasanta Sadhukhan [this message]
2007-03-07 12:46 ` execv fails with EFAULT 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
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=45EEA7F8.5080908@sun.com \
--to=prasanta.sadhukhan@sun.com \
--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).