bug-coreutils
[Top][All Lists]
Advanced

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

bug#23866: stty sane behaviour.


From: Rich Burridge
Subject: bug#23866: stty sane behaviour.
Date: Tue, 28 Jun 2016 18:06:02 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

On 06/28/2016 05:05 PM, Pádraig Brady wrote:
On 29/06/16 00:03, Rich Burridge wrote:
...
Thanks for the detailed analysis.
It looks like this was already handled and we need to
expand the conditions where this is done.  The current code is:

   /* SunOS 5.3 loses (^Z doesn't work) if 'swtch' is the same as 'susp'.
      So the default is to disable 'swtch.'  */
   #if defined __sparc__ && defined __svr4__
   # undef CSWTCH
   # define CSWTCH _POSIX_VDISABLE
   #endif

How about we guard this with just:

   #ifdef __sun
   #endif

Assuming you mean:

--- src/stty.c.orig     2016-06-28 17:48:25.580754994 -0700
+++ src/stty.c  2016-06-28 17:51:21.725276863 -0700
@@ -120,7 +120,7 @@

 /* SunOS 5.3 loses (^Z doesn't work) if 'swtch' is the same as 'susp'.
    So the default is to disable 'swtch.'  */
-#if defined __sparc__ && defined __svr4__
+#if defined __sun
 # undef CSWTCH
 # define CSWTCH _POSIX_VDISABLE
 #endif

and I'm sure you do, this works great.

Thanks!






reply via email to

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