* dtable.cc (fh_alloc): Treat pc.dev as unsigned.

* fhandler_console.cc (fhandler_console::set_unit): Use lock always to avoid
races between competing cygwin processes running on the console.
This commit is contained in:
Christopher Faylor
2012-03-10 17:51:33 +00:00
parent ecd676f23c
commit 6c95669d23
3 changed files with 9 additions and 5 deletions

View File

@ -478,7 +478,7 @@ fh_alloc (path_conv& pc)
fh = cnew (fhandler_console, pc.dev);
break;
default:
switch ((int) pc.dev)
switch ((DWORD) pc.dev)
{
case FH_CONSOLE:
case FH_CONIN: