This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
mingw execv() bug bites cygwin gdb
- From: Sam Steingold <sds at gnu dot org>
- To: cygwin at cygwin dot com
- Cc: mingw-users at lists dot sourceforge dot net
- Date: 20 Jul 2003 20:50:23 -0400
- Subject: mingw execv() bug bites cygwin gdb
- Organization: disorganization
- Reply-to: sds at gnu dot org
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
int main (int argc, char *argv[]) {
printf(" * argc=%d\n",argc);
for (int i=0; i<argc; i++) printf("[%s]\n",argv[i]);
if (argc>1) {
argv[argc-1] = NULL;
execv(argv[0],argv);
perror(argv[0]);
return 1;
} else
return 0;
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/