<!DOCTYPE html>

<html><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport"/>
<title>HTML E-Mail</title>
</head><body class="email">
<p class="quotelead" style="font-style: italic; margin-bottom: -1em; color: #999; font-size: 80%">On Tue, Jan 12, 2021 at 05:29:15PM -0500, ivan wrote:</p>
<blockquote class="quote initial" style="padding: 0 0.5em; margin: 0; font-style: italic; border-left: 2px solid #ccc; color: #999; font-size: 80%">
<p>Thanks for the explanation, that makes sense. I looked at the history of<br/>
'safeSpawn' and interestingly, it used to call xfork, but that was changed<br/>
{.quotelead}>in this commit:</p>
</blockquote>
<blockquote class="quote initial" style="padding: 0 0.5em; margin: 0; font-style: italic; border-left: 2px solid #ccc; color: #999; font-size: 80%">
<p><a class="uri" href="https://github.com/xmonad/xmonad-contrib/commit/1844c80978844611f7d409cab7c313bb0c0649bf">https://github.com/xmonad/xmonad-contrib/commit/1844c80978844611f7d409cab7c313bb0c0649bf</a></p>
</blockquote>
<p>That commit makes no sense. xfork always did uninstallSignalHandlers. Actually, xfork is still exactly the same function it was in 2009 when it appeared for the first time.</p>
<p>The only exaplanation I have is that the reporter of <a class="uri" href="https://code.google.com/archive/p/xmonad/issues/441">https://code.google.com/archive/p/xmonad/issues/441</a> used xmonad-contrib that didn't use xfork yet (that is, before <a class="uri" href="https://github.com/xmonad/xmonad-contrib/commit/e8c0f39fd5238771d14b920b8b87f89e7b56c30f">https://github.com/xmonad/xmonad-contrib/commit/e8c0f39fd5238771d14b920b8b87f89e7b56c30f</a>), and reported an issue which gwern tried to fix without knowing it'd already been fixed but the reporter isn't running the fix yet, and pushed yet another fix (1844c8097 that you mentioned) but forgot about stdin. This explanation assumes the problem was in signal handling, but the discussion in <a class="uri" href="https://code.google.com/archive/p/xmonad/issues/441">https://code.google.com/archive/p/xmonad/issues/441</a> looks like it was, indeed.</p>
<p>So I think 1844c8097 can just be reverted, the issue was most probably already fixed by e8c0f39fd5.</p>
<blockquote class="quote subsequent" style="padding: 0 0.5em; margin: 0; font-style: italic; border-left: 2px solid #ccc; color: #999; font-size: 80%">
<p>The issue described in that commit, though, seems to be related to signal<br/>
handlers rather than stdin (though it also sounds like the exact issue may<br/>
not have been identified).</p>
</blockquote>
<div class="signature" style="color: #999; font-family: monospace; white-space: pre; margin: 1em 0 0 0; font-size: 80%"><span class="leader">-- </span><br/>Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, https://work.lisk.in/</div>
</body></html>