🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Ray Moody Fri, 14 Jul 1989 18:49
TIOCSETP vs TIOCSETN
#323
Author: Ray Moody
Date: Fri, 14 Jul 1989 18:49
30 lines
1182 bytes
    Bash uses TIOCSETP to reset the tty states when a job stops.  This
flushes my typeahead.  Bash should use TIOCSETN to avoid flushing
typeahead.

								Ray
-------------------------------------------------------------------------------
RCS file: RCS/jobs.c,v
retrieving revision 1.2
diff -c -r1.2 jobs.c
*** /tmp/,RCSt1017471	Fri Jul 14 13:47:36 1989
--- jobs.c	Fri Jul 14 13:46:31 1989
***************
*** 699,705
    int tty = open ("/dev/tty", O_RDONLY);
    if (tty != -1)
      {
!       ioctl (tty, TIOCSETP, &shell_tty_info);
        close (tty);
      }
  }

--- 699,705 -----
    int tty = open ("/dev/tty", O_RDONLY);
    if (tty != -1)
      {
!       ioctl (tty, TIOCSETN, &shell_tty_info);
        close (tty);
      }
  }
TIOCSETP vs TIOCSETN
#324
Author: Brian Fox
Date: Fri, 14 Jul 1989 20:43
12 lines
782 bytes
   Date: Fri, 14 Jul 89 13:49:26 EST
   From: ray@gibbs.physics.purdue.edu (Ray Moody)


       Bash uses TIOCSETP to reset the tty states when a job stops.  This
   flushes my typeahead.  Bash should use TIOCSETN to avoid flushing
   typeahead.

Yeah, I noticed this one right away also.

Brian
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads