diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-05-21 08:01:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-05-21 08:01:57 +0000 |
commit | 5c768c978c52c277536c28925161148407206d63 (patch) | |
tree | 9cd32501cc344c4fb8d1343313c3021e4adc63be /winsup/cygwin/sigproc.cc | |
parent | 3a9c82d0117666ddb0c140389d05d057db3fad0c (diff) | |
download | cygnal-5c768c978c52c277536c28925161148407206d63.tar.gz cygnal-5c768c978c52c277536c28925161148407206d63.tar.bz2 cygnal-5c768c978c52c277536c28925161148407206d63.zip |
* shared_info.h: Match shared_name declaration with below change.
* shared.cc (shared_name): Use incoming char * parameter instead of
local static buffer.
(open_shared): Accomodate new calling convention for shared_name.
* exceptions.cc (events_init): Ditto.
* sigproc.cc (getsem): Ditto.
* syscalls.cc (login): Ditto.
(logout): Ditto.
(pututline): Ditto.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 124b8d059..5d3b2e220 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -883,6 +883,7 @@ static HANDLE __stdcall getsem (_pinfo *p, const char *str, int init, int max) { HANDLE h; + char sem_name[MAX_PATH]; if (p != NULL) { @@ -906,7 +907,7 @@ getsem (_pinfo *p, const char *str, int init, int max) DWORD winpid = GetCurrentProcessId (); h = CreateSemaphore (sec_user_nih (sa_buf), init, max, - str = shared_name (str, winpid)); + str = shared_name (sem_name, str, winpid)); p = myself; if (!h) { @@ -917,7 +918,7 @@ getsem (_pinfo *p, const char *str, int init, int max) else { h = OpenSemaphore (SEMAPHORE_ALL_ACCESS, FALSE, - shared_name (str, p->dwProcessId)); + shared_name (sem_name, str, p->dwProcessId)); if (!h) { |