<i>protect notifier against signals</i> status still Open with 3 other changes
by
.
D 2018-05-26T21:23:24.720
J icomment TIP\s#509\sbrought\sme\sback\sto\sthink\sover\ssignal\shandling.\sI\stried\sto\sdirect\r\nsignal\sdelivery\sby\susing\spthread_sigmask()\sin\sthe\sthis\scheck-in:\r\n\r\n\s\shttps://www.androwish.org/index.html/info/5cf69f01d7eca5a9\r\n\r\nThe\sidea\sis\sto\shave\sthe\snotifier\sdeal\swith\ssignals,\sand\sno\sthread\selse.\r\nIt\srequires\sto\sstart\sthe\snotifier\sthread\son\sPOSIX\splatforms\sas\searly\sas\r\npossible,\sin\sorder\sto\stake\sover\sbefore\sany\sother\sthreads\sare\screated.\r\nThe\smain\s(and\sall\slater)\sthreads\shave\sall\ssignals\sblocked,\sexcept\sfor\r\nthe\snotifier.\sSo\sfar\sthis\sseems\sto\swork\sas\stested\son\svarious\sx86_64\r\nLinuxen.\r\n\r\nHowever,\sfunction\sTcl_AsyncMark()\sand\sfriends\sstill\sare\ssubject\sto\sbe\r\nre-thougt\sdue\sto\ssignal\ssafety-ness\sof\ssystem\scalls\sbeing\sused\s(see\r\nthe\sfunction\slist\sin\shttp://man7.org/linux/man-pages/man7/signal-safety.7.html).\r\n\r\nAnd\sthen\sthere's\sTclX's\s"signal\sblock|unblock"\swhich\sshould\snot\salter\sthe\r\ncalling\sthread's\ssigmask,\sbut\sneeds\sto\smodify\sthe\snotifier's\sone\sby\susing\r\nsome\sinter-thread\scommunication,\swhich\srequires\sTcl\score\schanges.
J login chw
J mimetype text/plain
K f4f44174e4c88a9132b19bcc4b68346a1d229fe1
U chw
Z 96ae49b82064bfbfc94b38a178b70ba9