Date: Tue, 21 Nov 2000 15:57:34 +0200 From: "Vladimir Terziev" <vladimirt@rila.bg> To: hackers@FreeBSD.ORG Subject: Semaphore blocking and signal handling Message-ID: <200011211357.PAA63147@star.rila.bg>
next in thread | raw e-mail | index | archive | help
Hi. Am I right for the following: When a process is blocked on semop (trying to get resource) and receives a signal (for which the process has a handler), the process gets unblocked from the semop wait (to handle the signal), and after handling the signal continues with the instruction after semop, as if it was unblocked by successful semop. Is this behaviour normal, and is there a way for the process to distinguish between signal handling unblock and successful semop operation (may be by setting a global variable in the signal-handling function) ? Thank you in advance. Vladimir Terziev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011211357.PAA63147>