Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3178

Show
Ignore:
Timestamp:
02/13/08 10:07:57 (10 months ago)
Author:
schveiguy
Message:

Removed DETACHED_PROCESS from the Windows version to allow redirection of standard handles when running a batch file.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/sys/Process.d

    r2933 r3178  
    645645            // Convert the working directory to a null-ended string if 
    646646            // necessary. 
     647            // 
     648            // Note, this used to contain DETACHED_PROCESS, but 
     649            // this causes problems with redirection if the program being 
     650            // started decides to allocate a console (i.e. if you run a batch 
     651            // file) 
    647652            if (CreateProcessA(null, command.ptr, null, null, true, 
    648                                DETACHED_PROCESS
     653                               0
    649654                               (_env.length > 0 ? toNullEndedBuffer(_env).ptr : null), 
    650655                               toStringz(_workDir), &startup, _info))