* 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 @@
/* sync.h: Header file for cygwin synchronization primitives.
Copyright 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
Written by Christopher Faylor <cgf@cygnus.com>
@@ -66,6 +66,7 @@ public:
locker.release ();
}
friend class dtable;
friend class fhandler_fifo;
};
#endif /*_SYNC_H*/