* dtable.cc (set_std_handle): Call SetStdHandle with NULL if fd is closed.

(dtable::release): "Close" standard handle if appropriate.
* dcrt0.cc (dll_crt0_0): Fix minor switch formatting problem.
* fork.cc (frok::parent): Make minor comment indentation change.
This commit is contained in:
Christopher Faylor
2012-03-20 23:13:40 +00:00
parent c1c62a1368
commit 30fa154939
4 changed files with 25 additions and 14 deletions

View File

@@ -744,13 +744,13 @@ dll_crt0_0 ()
cygwin_user_h = child_proc_info->user_h;
switch (child_proc_info->type)
{
case _CH_FORK:
fork_info->handle_fork ();
break;
case _CH_SPAWN:
case _CH_EXEC:
spawn_info->handle_spawn ();
break;
case _CH_FORK:
fork_info->handle_fork ();
break;
case _CH_SPAWN:
case _CH_EXEC:
spawn_info->handle_spawn ();
break;
}
}