[kde-freebsd] [KDE/Mac] [CODE] Multithreaded SIGSEGV signal handling, please examine
Michael Pyne
mpyne at kde.org
Sun Sep 25 15:49:57 UTC 2011
On Sunday, September 25, 2011 14:34:49 you wrote:
> The next problem is, that sem_init(..) isn't implemented here.
> $ ./sigcatcher
> Error: sem_init: Function not implemented
> $
>
> It seems that only named semaphores are implemented.
> I've changed this part of your code to use sem_open(..) instead [see
> attachment] and then I get the expected result:
For the application in question named synchronization primitives are non-
ideal. Does Mac OS X support a plain pthread_mutex? If so that would work fine
(and probably even the Qt primitives will work OK).
Also, could you test whether a SIGSEGV is actually caught and handled
correctly? My email last night was wishy-washy about that but the
sigsetjmp/siglongjmp stuff is closer to hocus-pocus than most programs are
likely to get and it would be nice to know if that works or not.
Regards,
- Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20110925/ee5793e7/attachment.sig>
More information about the kde-freebsd
mailing list