<div dir="ltr">In 'spawn', we close stdin in the child process, whereas in 'safeSpawn' from xmonad-contrib we do not. I'm curious why that's the case?<div><br></div><div>This commit introduced the code that closes stdin, but doesn't describe the motivation for doing so:</div><div><a href="https://github.com/xmonad/xmonad/commit/353e7cd6811245fbee7c8c6cf821041c924523b3">https://github.com/xmonad/xmonad/commit/353e7cd6811245fbee7c8c6cf821041c924523b3</a></div><div><br></div><div>I suspect we close stdin in 'spawn' because we know it won't be needed, but I'm still not sure what we gain by closing it (does it improve efficiency?). And should we be closing it in 'safeSpawn' as well, or does 'safeSpawn' have a use-case that requires reading from stdin?</div></div>