[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1737614926255440.jpg (127 KB, 2048x1344)
127 KB
127 KB JPG
previous: >>107878988

#define __NR_rt_sigprocmask        14

https://man7.org/linux/man-pages/man2/sigprocmask.2.html

today's thread is again mostly a continuation of the previous thread's discussion. we will focus on linux signals in general. from the manpage, these two excerpts are what i feel is the most interesting:
>It is not possible to block SIGKILL or SIGSTOP. Attempts to do so are silently ignored.
this one makes sense if you understand the reasoning behind it, but i have seen many questions on this in the past. definitely a topic worth discussing
>Each of the threads in a process has its own signal mask.
this is useful because it is powerful, but it is also really annoying in its complexity, lol
i guess honorable mention to the note about undefined behavior, as well

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
I believe that Signals are divine punishment for our past and future sins
>>
File: elmo056.jpg (27 KB, 446x500)
27 KB
27 KB JPG
I’m just dropping by to say never stop making these threads. In a sea of e-celebs and consoomer shit flinging, it’s anons like you that actually make /g/ a somewhat tolerable place.
>>
File: 1768098117972436.jpg (287 KB, 2004x2004)
287 KB
287 KB JPG
>>107889685
i'm doing my part
>>
File: 1767234026755360.webm (1.88 MB, 1440x1080)
1.88 MB
1.88 MB WEBM
>>107889612
In multithreaded programs I’ll usually have a dedicated signal handling thread that’s responsible for capturing signals, translating them to a broader program “intent” (clean shutdown, etc…), and communicating said intent with the rest of the system in a controlled manner. All other threads are configured to ignore the raw signals. Obviously all bets are off if you get a SIGKILL or SIGSTOP
>>
>>107889612
I don't like signals. NT and every microkernel got it right with a proper event system.
>>
File: idtst.jpg (17 KB, 360x360)
17 KB
17 KB JPG
>>107889612
>literal karen board
>ever being cute
>>
>>107889612
[s4s] is full of discord troons now i stopped posting there kys
.t the original yuji sakai



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.