From: cgf Date: Mon, 7 Jan 2002 22:18:35 +0000 (+0000) Subject: * sigproc.cc (getsem): Clean up debugging output. X-Git-Tag: cygwin_daemon_merge_HEAD~1167 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4039173af999a77db9e027f047ca7eb8e8b8283c;p=pf3gnuchains%2Fpf3gnuchains4x.git * sigproc.cc (getsem): Clean up debugging output. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1c2187c0b3..6ae86d345e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2002-01-07 Christopher Faylor + * sigproc.cc (getsem): Clean up debugging output. + +2002-01-07 Christopher Faylor + * sigproc.cc (getsem): Set errno when unable to create own semaphore. Reorganize to make clearer that error should only come from initial creation of process semaphore. diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 36b563e1cd..159c3bd69e 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -944,7 +944,7 @@ getsem (_pinfo *p, const char *str, int init, int max) p = myself; if (!h) { - system_printf ("can't %s %s, %E", p ? "open" : "create", str); + system_printf ("can't create semaphore %s, %E", str); __seterrno (); } }