Waybar/include/util
cptpcrd df65cab17a Open command pipes as close-on-exec
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.
2023-05-21 12:10:44 -04:00
..
SafeSignal.hpp refactor: lint 2022-04-06 08:37:19 +02:00
clara.hpp fix: lint 2023-04-03 09:41:24 +02:00
command.hpp Open command pipes as close-on-exec 2023-05-21 12:10:44 -04:00
date.hpp feat(clock): support chrono Time Zone extensions. 2023-01-21 02:18:44 -08:00
format.hpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
json.hpp fix: adapt to fmt 9.0.0 breaking changes 2022-07-13 22:36:32 -07:00
rewrite_string.hpp Rename function name 2023-03-25 17:33:01 +01:00
rfkill.hpp refactor: lint 2022-04-06 08:37:19 +02:00
sanitize_str.hpp utils: add sanitize_str to encode '&' etc. 2022-10-17 00:31:19 +02:00
sleeper_thread.hpp refactor: lint 2022-04-06 08:37:19 +02:00
string.hpp ltrim and rtrim take argument by const-ref 2022-02-05 21:02:58 +01:00
ustring_clen.hpp Use g_unichar_iswide to properly align calendar on CJK locales 2021-01-31 11:53:53 -08:00