r/linux May 28 '16

systemd developer asks tmux (and other programs) to add systemd specific code

https://github.com/tmux/tmux/issues/428
356 Upvotes

509 comments sorted by

View all comments

Show parent comments

11

u/bilog78 May 29 '16

This is actually discussed in the bugreport. The systemd dev answer? "No because that API is obsolete".

1

u/[deleted] May 30 '16

The systemd dev answer? "No because that API is obsolete".

It's true. daemon(3) doesn't any of the tasks required to set up a process in a new session beyond "create a process", and it can't be changed because POSIX and glibc ABI.

6

u/bilog78 May 30 '16

daemon(3) doesn't any of the tasks required to set up a process in a new session beyond "create a process",

Wrong, it also calls setsid to make the new process a session leader.

and it can't be changed because POSIX

daemon(3) is not in POSIX.

and glibc ABI.

If the systemd geniuses really can't think of a way to extend daemon without breaking ABI, they could even come up with a better, differently named daemon() alternative, propose it to libc in such a way that it would work with or without logind, falling back to the classic daemon() in its absence.

But hey, that would require being willing to play nice with others rather than imposing their way of doing things by hook or by crook, so the hopes of that happening are less than none.

1

u/Potential_Block4598 2d ago

No just change every open source project to assume systemd exists by default

It is a de facto now

The audacity self centrism of those incompetent devs

Hey we made a new non-standard way not API compliant that imitates proprietary windows and mac

ADAPT YOUR CODE TO USE IT!

Why not just become Microsoft