LINUX.ORG.RU

История изменений

Исправление kim-roader, (текущая версия) :

Он там пишет не про то, что сигнал приходит всем потокам, а про то, что у нас отсутствует pthread_sigaction и у тебя нет возможности сделать так, чтобы у разных потоков были разные обработчики одного и того же сигнала.

А вообще man pthread_kill тебе английским по белому пишет:

Signal dispositions are process-wide: if a signal handler is installed, the handler will be invoked in the thread thread, but if the disposition of the signal is «stop», «continue», or «terminate», this action will affect the whole process.

Исправление kim-roader, :

Он там пишет не про то, что сигнал приходит всем потокам, а про то, что у нас отсутствует pthread_sigaction и у тебя нет возможности сделать так, чтобы у разных потоков были разные обработчики одного и того же сигнала.

А вообще в man pthread_kill тебе английским по белому пишет:

Signal dispositions are process-wide: if a signal handler is installed, the handler will be invoked in the thread thread, but if the disposition of the signal is «stop», «continue», or «terminate», this action will affect the whole process.

Исходная версия kim-roader, :

Где он такое пишет? И man pthread_kill тебе английским по белому пишет:

Signal dispositions are process-wide: if a signal handler is installed, the handler will be invoked in the thread thread, but if the disposition of the signal is «stop», «continue», or «terminate», this action will affect the whole process.