LookingGlass/common
Quantum 57d220a43b [common] open: detach xdg-open instead of waiting for it
Sometimes, e.g. when xdg-open has to start the browser, the xdg-open
process can stay around until the browser exits, which freezes the
client. Instead, we should not wait for xdg-open to exit.

However, we can't simply not call wait, as that would leave the
xdg-open process around as a zombie. We could turn off the SIGCHLD
handler, but that's a global solution to a local problem. Instead, we
call setsid and fork again to detach the xdg-open process as if it's a
daemon, and let init take care of the reaping process.

Co-Authored-By: Tudor Brindus <me@tbrindus.ca>
2021-09-27 13:35:08 +10:00
..
cmake [common] cmake: correctly link static libbfd.a 2021-03-03 16:37:34 +11:00
include/common [common] cpuinfo: add common library 2021-08-31 20:14:10 +10:00
src [common] open: detach xdg-open instead of waiting for it 2021-09-27 13:35:08 +10:00
CMakeLists.txt [common] cpuinfo: implement lgDebugCPU 2021-08-31 20:14:10 +10:00