fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#daemons

0 posts0 participants0 posts today
Coding in #C ... sometimes I really enjoy just using what I created a long time ago 😁.

This is the whole change to #Xmoji allowing it to fork into background on startup:
https://github.com/Zirias/xmoji/commit/0ab2d8ed424ebc35aa99e5c2bd15b097a5e74b42

It's the first step to implementing an (optional) single-instance mode, that will only allow one running instance per user and machine. Implementing that will require a local #Unix domain #socket, which is also covered by the same library, #poser 😉.

I designed this library for (simple and small) #networking #daemons, but found it's quite useful for #X11 applications as well. If you want to know more, here are the docs:
https://zirias.github.io/poser/
GitHubX11App: Detach from terminal by default · Zirias/xmoji@0ab2d8eBy default, fork into background and exit from the main process after startup is complete. For this to work, calling X11Adapter_init() must be moved in the prestartup event handler which runs from ...

are beasts.

I wanted to have a common base for a daemon start/status/stop script that runs on and variants.
But that requires lots of platform-IF lines.

is still compatible with LSB init scripts when some additional env-variables are set.
Surprisingly is quite different from the way of doing daemon scripts.

It's weird that every clone tries to reinvent the wheel (not only the group 😉) differently when it comes to admin tasks.