From cbdbe9d766cdf8a3b48d20563d9983db6e6f16f8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 5 Jan 2003 06:36:50 +0000 Subject: [PATCH] * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just lock when leaving. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/pinfo.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2c2e9eb5b..4060b1f01 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-01-05 Christopher Faylor + + * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just + lock when leaving. + 2003-01-03 Christopher Faylor * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 3c5af4bce..336405fde 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -424,7 +424,7 @@ err: res.n = 0; out: myself->hello_pid = 0; - LeaveCriticalSection (&lock); + LeaveCriticalSection (&myself->lock); return res; }