Messages in this thread | | | Date | Tue, 11 Jun 2002 15:19:07 +0200 | From | Peter Wächtler <> | Subject | Re: Process-Shared Mutex (futex) - What is it good for ? |
| |
Vladimir Zidar wrote: > On Sun, 2002-06-09 at 11:49, Peter Wächtler wrote: > > >>Just for *that*? >>Do you write programs that reveal from sigsegv with sigsetjmp(3)? >> > > No, I do not. But killing the process sounds much like abnormal > programm termination. Can you feel the word 'abnormal' ? It is opposite > of normal - be it simple as error condition on file descriptor. >
A-prog: B-prog:
gets write lock write some data block on read lock write some data crashes wants an error indication to repair data magically
So a crashing A-prog is OK for you, but B should get an indication. Could catch a signal (SIGLOST?) returning -1 with errno=LOCKBROKEN That would be possible with futex.
That is a case for writing data to a file - what about linked lists in memory?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |