diff options
author | Alexander Maltsev <keltar.gw@gmail.com> | 2023-11-12 12:29:22 +0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2023-11-14 14:35:23 -0600 |
commit | fda9dcd1f2421f3ff1a366aa75f14e0141e754c5 (patch) | |
tree | 285103f5542313fb1a21a51e84c42a5228fe8cba /src/rc-update | |
parent | 6f180e94243885d312004ed89901329bd1a3ceb6 (diff) |
Skip already processed files in rc_service_daemon_set
Fixes the problem described in https://bugs.gentoo.org/916947 -
start-stop-daemon hangs in infinite loop when stopping some daemons on
linux 6.6+
It appears linux 6.6 reworked tmpfs, and since then it triggers this
problem in openrc: when iterating over files via readdir, running rename
on a file could result in reading the same file again with next readdir
call.
The Open Group manual for readdir explicitly states "If a file is
removed from or added to the directory after the most recent call to
opendir() or rewinddir(), whether a subsequent call to readdir() returns
an entry for that file is unspecified.". Linux man page don't seem to
mention that, but don't seem to say anything to contradict that either.
So I presume we can't rely on some specific behaviour here.
Bug: https://bugs.gentoo.org/916947
Diffstat (limited to 'src/rc-update')
0 files changed, 0 insertions, 0 deletions