photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

243
active users

#actions

0 posts0 participants0 posts today

1/2

Some things I won't be tolerating:

*#Trump supporters
*"#Neutrality" or "apoliticality", even if it's your job
*Calls for #actions to remain peaceful or legal
*Saying everything will be okay
*Lotus-eating (stepping away and doing other things for #MentalHealth reasons is fine and important, but #escapism is intolerable)
*Denying that the main reason #Kamala lost was her support for Israel's #genocide
*Blaming #leftists or #marginalized people for Kamala losing

If you happen to be writing a long-lived #Unix process and want it to catch one or more #signals to trigger #actions, you want to use the "self-pipe trick" to do so safely and reliably.

If you're doing it in #Python, you can now do it with a single line of code, using a tiny #library.
github.com/ccazabon/self-pipe

The "trick" was invented by "djb" (D.J. Bernstein) and makes it a breeze to handle signals without tripping over the many poorly-documented issues surrounding them.

GitHubGitHub - ccazabon/self-pipe: A pure-Python implementation of the Unix "self-pipe trick" invented by djb (D. J. Bernstein) for safely handling signals in an event loopA pure-Python implementation of the Unix "self-pipe trick" invented by djb (D. J. Bernstein) for safely handling signals in an event loop - ccazabon/self-pipe