[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another Semaphore question.
- To: Oded Arbel <odeda-linux-il(at-nospam)betalfa.org.il>
- Subject: Re: Another Semaphore question.
- From: "Stanislav Malyshev a.k.a Frodo" <frodo(at-nospam)sharat.co.il>
- Date: Thu, 3 May 2001 17:54:49 +0300 (IDT)
- cc: Linux-IL Mailing list <linux-il(at-nospam)cs.huji.ac.il>
- In-Reply-To: <Pine.LNX.4.30.0105031601450.27792-100000@europa.betalfa.org.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
OA>> One more semaphore question if you please - if I create a semaphoer set,
OA>> and then leave it lying around and exit the process - will it stay in the
OA>> system when no current process uses it ?
Yes. This is one of the problems with semaphores. BTW, why not using file
locking instead of it? It has much cleaner and richer semantics and almost
none of the problems semaphores have.
OA>> If so - what does it take to clear it from the system : loging out ? going
OA>> to runlevel 1 ? rebooting ?
Or you do RMID operation on it (btw, you can RMID used semaphore too, so
you will need to check if it's in use manually), or reboot.
--
frodo@sharat.co.il \/ There shall be counsels taken
Stanislav Malyshev /\ Stronger than Morgul-spells
phone +972-3-9316425 /\ JRRT LotR.
http://sharat.co.il/frodo/ whois:!SM8333
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il