4 ms·
Part of what this fights against is the daemonization fallacy. At initialization, before it even looks at its command-line arguments, the program closes almost
by JdeBP 9y ago
Part of what this fights against is the daemonization fallacy. At initialization, before it even looks at its command-line arguments, the program closes almost all of its open file descriptors. Then it tries to use the /dev/fd/N name passed in as an argument by the shell's process substitution, which is of course now closed.
The waiting and killing in the shell script is fighting the daemonization fallacy, too. Luckily, that part of the program can be turned off with --daemonize=no. Even the pulseaudio people themselves do this.
* https://github.com/pulseaudio/pulseaudio/blob/24928d6b6fa1cde3312bcf63e4e14d7003aadc69/src/daemon/systemd/user/pulseaudio.service.in#L22 https://github.com/pulseaudio/pulseaudio/blob/24928d6b6fa1cd...