[lkml]   [2002]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRFC: Semaphore behavior
I wanted to clarify my understanding of the behavior of semaphores
on the i386 architecture, as I understand it.

1. I grab a semaphore and I am open to accepting signals
2. I am interrupted by a user process using ctrl-C or some other
method of signal delivery.
3. After this point, I cannot grab *ANY* semaphore using
(down_interruptible), since the semaphore implementation checks for
pending signals and if there are signals pending, it does not
grant me the semaphore.

So, the only option I have after (2) to use down_interruptible again

a. Flush the signal.
b. Handle the signal.

Please cc your replies to me

Is my assessment correct?

Chat with friends online, try MSN Messenger:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.028 / U:0.112 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site