emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r113973: * process.c (flush_pending_output): Remove


From: Paul Eggert
Subject: [Emacs-diffs] trunk r113973: * process.c (flush_pending_output): Remove stub.
Date: Thu, 22 Aug 2013 18:29:55 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113973
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2013-08-22 11:29:51 -0700
message:
  * process.c (flush_pending_output): Remove stub.
  
  All uses removed.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/lisp.h                     lisp.h-20091113204419-o5vbwnq5f7feedwu-253
  src/process.c                  process.c-20091113204419-o5vbwnq5f7feedwu-462
  src/sysdep.c                   sysdep.c-20091113204419-o5vbwnq5f7feedwu-448
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-08-21 21:27:30 +0000
+++ b/src/ChangeLog     2013-08-22 18:29:51 +0000
@@ -1,3 +1,8 @@
+2013-08-22  Paul Eggert  <address@hidden>
+
+       * process.c (flush_pending_output): Remove stub.
+       All uses removed.
+
 2013-08-21  Paul Eggert  <address@hidden>
 
        * callproc.c: Fix race that killed background processes (Bug#15144).

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2013-08-15 14:52:53 +0000
+++ b/src/lisp.h        2013-08-22 18:29:51 +0000
@@ -4100,7 +4100,6 @@
 extern void reset_sys_modes (struct tty_display_info *);
 extern void init_all_sys_modes (void);
 extern void reset_all_sys_modes (void);
-extern void flush_pending_output (int) ATTRIBUTE_CONST;
 extern void child_setup_tty (int);
 extern void setup_pty (int);
 extern int set_window_size (int, int, int);

=== modified file 'src/process.c'
--- a/src/process.c     2013-08-21 05:39:51 +0000
+++ b/src/process.c     2013-08-22 18:29:51 +0000
@@ -3846,15 +3846,12 @@
     }
 #endif
 
-  inchannel = p->infd;
-
   /* Beware SIGCHLD hereabouts. */
-  if (inchannel >= 0)
-    flush_pending_output (inchannel);
 
   for (i = 0; i < PROCESS_OPEN_FDS; i++)
     close_process_fd (&p->open_fd[i]);
 
+  inchannel = p->infd;
   if (inchannel >= 0)
     {
       p->infd  = -1;
@@ -5785,10 +5782,9 @@
        return;
     }
 
-  switch (signo)
+#ifdef SIGCONT
+  if (signo == SIGCONT)
     {
-#ifdef SIGCONT
-    case SIGCONT:
       p->raw_status_new = 0;
       pset_status (p, Qrun);
       p->tick = ++process_tick;
@@ -5797,14 +5793,8 @@
          status_notify (NULL);
          redisplay_preserve_echo_area (13);
        }
-      break;
-#endif /* ! defined (SIGCONT) */
-    case SIGINT:
-    case SIGQUIT:
-    case SIGKILL:
-      flush_pending_output (p->infd);
-      break;
     }
+#endif
 
   /* If we don't have process groups, send the signal to the immediate
      subprocess.  That isn't really right, but it's better than any

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2013-08-09 12:25:34 +0000
+++ b/src/sysdep.c      2013-08-22 18:29:51 +0000
@@ -337,16 +337,6 @@
   return get_child_status (child, status, WNOHANG | options, 0);
 }
 
-/*
- *     flush any pending output
- *      (may flush input as well; it does not matter the way we use it)
- */
-
-void
-flush_pending_output (int channel)
-{
-  /* FIXME: maybe this function should be removed */
-}
 
 /*  Set up the terminal at the other end of a pseudo-terminal that
     we will be controlling an inferior through.


reply via email to

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