mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
df65cab17a
Avoids a race where the pipe could be inherited by another process spawning at about the same time. If the other process didn't exit quickly (e.g. if it was a custom script that did its own looping), it would keep the write end of the pipe open, and so reading from the pipe to try to get the command's output would block. This bug manifested as some custom modules randomly not appearing in the bar, requiring a reload to fix. The custom script had run and exited, but the pipe had been inherited by another process, and the thread that updated the module's output was blocked trying to read from it. |
||
---|---|---|
.. | ||
clara.hpp | ||
command.hpp | ||
date.hpp | ||
format.hpp | ||
json.hpp | ||
rewrite_string.hpp | ||
rfkill.hpp | ||
SafeSignal.hpp | ||
sanitize_str.hpp | ||
sleeper_thread.hpp | ||
string.hpp | ||
ustring_clen.hpp |