🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #212

Mutex Sempahore Question (Owner Died)

#212
From: Keith Bennett
Date: Mon, 29 Aug 1994 17:01
17 lines
1731 bytes
We have an applications with multiple processes sharing mutex
semaphores.  Recently we had a problem where one of the processes 
would occasionally trap and abort that process.  (We have since fixed 
that problem.)  If it happened to own a semaphore when it died, all the 
other processes could not use that semaphore, since they would receive 
an error #105 (ERROR_SEM_OWNER_DIED).

Is there any way to create the semaphore such that if its owner dies, it 
is released automatically?  In our case, this might be helfpul.


Thanks for any answers... - Keith
-- 
--------------------------------------------------------------------------
Keith Bennett                            Bennett Business Solutions, Inc.
C++/C Software Development               1852 Middlebridge Drive
kbennett@cpcug.org                       Silver Spring, MD USA 20906
Technical Details
Message-ID: <33t49f$mac@cpcug.org>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!news1.digex.net!digex.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cd94,febcabb5e161bd2b,start
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 11307a,febcabb5e161bd2b,start
X-Google-Attributes: gid11307a,public
X-Google-ArrivalTime: 1994-08-29 10:34:22 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!news1.digex.net!digex.net!not-for-mail
From: kbennett@cpcug.org (Keith Bennett)
Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l
Subject: Mutex Sempahore Question (Owner Died)
Date: 29 Aug 1994 13:01:35 -0400
Organization: Express Access Online Communications USA: 800-969-9090
Lines: 17
Message-ID: <33t49f$mac@cpcug.org>
NNTP-Posting-Host: cpcug.org