bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep-3.4-almost.19-ff30 on Solaris 10


From: Paul Eggert
Subject: Re: grep-3.4-almost.19-ff30 on Solaris 10
Date: Thu, 17 Sep 2020 19:26:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 9/17/20 1:53 PM, Bruno Haible wrote:
-  {
-    $1
-  } AS_MESSAGE_FD>/dev/null
+  exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null
+  $1
+  exec AS_MESSAGE_FD>&GL_TMP_FD AS_MESSAGE_FD>&-

If a trap occurs during $1 and 'configure' outputs something to stderr before it exits, the output could be lost due to this patch.

Looking into it further, gl_SILENT is iffy as a general macro, as discarding stderr could make scripts harder to debug. Since gl_SILENT is used in just one place in Gnulib and it's used only to prettify the user messages, I took the liberty of trying to prettify the messages in a simpler way that doesn't need gl_SILENT, by installing the attached patch into Gnulib. I hope this suffices to fix the issue with gl_SIGNALBLOCKING and cached configuration variables.

Attachment: 0001-signalblocking-simplify-and-remove-gl_SILENT.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]