Ask a Question related to UNIX Programming, Design and Development.
-
Paul Pluzhnikov #1
Re: Fast signal handler switching & thread-specific handler.
[email]jek_bask@ngs.ru[/email] (Evgeny Baskakov) writes:
This is quite likely to crash on at least some pthread> void global_handler(args) {
> void (*thread_h)() = pthread_getspecific(thread_specific_handler_key);
> (*thread_h)(args);
> }
implementations (especially if sigaltstack was called beforehand):
you are calling async-signal-unsafe function from a signal handler.
Cheers,
--
In order to understand recursion you must first understand recursion.
Paul Pluzhnikov Guest
-
how to print instr ptr from stack in signal handler?
Hi, Want to catch SIGSEGV in a signal handler, print some meaningful info, then let things proceed to core sump. Know how to do all this and have... -
DataGrid's UpdateCommand event handler and CancelCommand handler problem
I am having the same problem: the wrong event handler is being fired when column headings and page changes are clicked. I am using the datagrid... -
signal interrupts one sleeping thread or all of them?
Suppose in a multithreading environment, If several threads are blocked, which can be interrupted by a signal. And a signal is sent to this... -
does not switch using Fast User Switching
Click on start - run - type in services.msc which opens up services, make sure terminal services is started. Fast user switching depends on this... -
sig_atomic_t: from signal handler: set or access?
Hi, seeing in SUSv3: 1) ==={{{ functions/sigaction.html If the signal occurs other than as the result of calling abort(), kill(), or...



Reply With Quote

