* fhandler_fifo.cc (fhandler_fifo::open): Release process lock and grab a

system-wide mutex to prevent a deadlock and a race.
* sync.h (lock_process): Make fhandler_fifo a friend.
* smallprint.c (__small_vsprintf): Cosmetic change.
This commit is contained in:
Christopher Faylor
2006-06-23 00:19:39 +00:00
parent 083f3e4a23
commit 4470d66ddc
4 changed files with 56 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
/* smallprint.c: small print routines for WIN32
Copyright 1996, 1998, 2000, 2001, 2002 Red Hat, Inc.
Copyright 1996, 1998, 2000, 2001, 2002, 2003, 2005, 2006 Red Hat, Inc.
This file is part of Cygwin.
@@ -159,7 +159,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap)
s = tmp;
goto fillin;
case '.':
n = strtol (fmt, (char **)&fmt, 10);
n = strtol (fmt, (char **) &fmt, 10);
if (*fmt++ != 's')
goto endfor;
case 's':