argv weirdness with latest snapshot
BHOLAM@uk.ibm.com
BHOLAM@uk.ibm.com
Wed Oct 11 01:19:00 GMT 2000
You wanted some testing of the latest snapshot for the upcoming 1.1.5 so
here goes.
I have a program that uses the Windows API CreateProcess to run another
program. This is a very small program which I compile using -mno-cygwin.
If the execed program is a non-cygwin program then the argument list is as
expected.
If the execed program is a cygwin program then the argument list also
includes the parent program.
I only see this behaviour with the latest snapshot, 1.1.4 was OK.
Attached should be a small testcase exec.tar. Just extract and 'sh runme'.
The child program just prints the number of arguments and the argument
list. With 1.1.4 you should see:
$ sh runme
Run no-cygwin child
1
C:\home\mike\db2\ntclp\winchild.exe
Run cygwin child
1
/home/mike/db2/ntclp/cygchild.exe
With the latest snapshot you see ( notice the difference in the argument
list when running the cygwin child):
$ sh runme
Run no-cygwin child
1
C:\home\mike\db2\ntclp\winchild.exe
Run cygwin child
2
./exec1
cygchild.exe
I am willing to entertain the possibility that I may not be using
CreateProcess correctly as my Windows programming is not that strong but
there is certainly a
difference in behaviour between 1.1.4 and the latest snapshot.
(See attached file: exec.tar)
Regards, Mike
Michael J. Bhola / DB2 Technical Specialist
Managed SAP Services / Mailpoint: DGC North Harbour
DDI: +44 (0)2392 564752 / Internal: 7-254752
Internet: bholam@uk.ibm.com / Notes: bholam@ibmgb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exec.tar
Type: application/x-tar
Size: 10240 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20001011/47cf2c37/attachment.tar>
More information about the Cygwin
mailing list