[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/process.c
From: |
Richard M . Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/src/process.c |
Date: |
Mon, 16 Aug 2004 19:01:54 -0400 |
Index: emacs/src/process.c
diff -c emacs/src/process.c:1.434 emacs/src/process.c:1.435
*** emacs/src/process.c:1.434 Sun Aug 1 23:10:06 2004
--- emacs/src/process.c Mon Aug 16 22:57:26 2004
***************
*** 5549,5577 ****
work. If the system has it, use it. */
#ifdef HAVE_TERMIOS
struct termios t;
switch (signo)
{
case SIGINT:
! tcgetattr (XINT (p->infd), &t);
! send_process (proc, &t.c_cc[VINTR], 1, Qnil);
! return;
case SIGQUIT:
! tcgetattr (XINT (p->infd), &t);
! send_process (proc, &t.c_cc[VQUIT], 1, Qnil);
! return;
case SIGTSTP:
- tcgetattr (XINT (p->infd), &t);
#if defined (VSWTCH) && !defined (PREFER_VSUSP)
! send_process (proc, &t.c_cc[VSWTCH], 1, Qnil);
#else
! send_process (proc, &t.c_cc[VSUSP], 1, Qnil);
#endif
! return;
}
#else /* ! HAVE_TERMIOS */
/* On Berkeley descendants, the following IOCTL's retrieve the
--- 5549,5580 ----
work. If the system has it, use it. */
#ifdef HAVE_TERMIOS
struct termios t;
+ cc_t *sig_char = NULL;
+
+ tcgetattr (XINT (p->infd), &t);
switch (signo)
{
case SIGINT:
! sig_char = &t.c_cc[VINTR];
! break;
case SIGQUIT:
! sig_char = &t.c_cc[VQUIT];
! break;
case SIGTSTP:
#if defined (VSWTCH) && !defined (PREFER_VSUSP)
! sig_char = &t.c_cc[VSWTCH];
#else
! sig_char = &t.c_cc[VSUSP];
#endif
! break;
}
+ if (sig_char && *sig_char != CVDISABLE)
+ send_process (proc, sig_char, 1, Qnil);
+ return;
#else /* ! HAVE_TERMIOS */
/* On Berkeley descendants, the following IOCTL's retrieve the
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/01
- [Emacs-diffs] Changes to emacs/src/process.c,
Richard M . Stallman <=
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/17
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/17
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/19
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/19
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/20
- [Emacs-diffs] Changes to emacs/src/process.c, Richard M . Stallman, 2004/08/22