Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004809OCamlOCaml generalpublic2009-05-28 16:362009-06-03 10:45
Reportervouillon 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.0 
Target VersionFixed in Version3.11.1+dev 
Summary0004809: Windows: Unix.create_process not working properly from a Cygwin shell
DescriptionWhen Unison is started from a Cygwin shell, it fails to start an ssh subprocess (calling Unix.create_process). The reason is that wrong startup information is passed to the ssh subprocess.

Changing the line:
    GetStartupInfo(&si);
to:
    ZeroMemory(&si, sizeof(STARTUPINFO));
    si.cb = sizeof(STARTUPINFO);
in file createprocess.c fixes the problem. By the way, this is what the Microsoft CRT library does.

At least, field si.cbReserved2 should be set to 0 and field si.lpReserved2 should be set to NULL, as documented at:
http://msdn.microsoft.com/en-us/library/ms686331(VS.85).aspx [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004979)
xleroy (administrator)
2009-06-03 10:45

Thanks for pointing out this issue. The suggested fix was applied in the "release311" branch and will be part of release 3.11.1

- Issue History
Date Modified Username Field Change
2009-05-28 16:36 vouillon New Issue
2009-06-03 10:45 xleroy Note Added: 0004979
2009-06-03 10:45 xleroy Status new => closed
2009-06-03 10:45 xleroy Resolution open => fixed
2009-06-03 10:45 xleroy Fixed in Version => 3.11.1+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker