emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r104065: * src/sysdep.c (wait_for_ter


From: Andreas Schwab
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104065: * src/sysdep.c (wait_for_termination_1): Make static.
Date: Sun, 01 May 2011 10:52:17 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104065
committer: Andreas Schwab <address@hidden>
branch nick: emacs
timestamp: Sun 2011-05-01 10:52:17 +0200
message:
  * src/sysdep.c (wait_for_termination_1): Make static.
  (wait_for_termination, interruptible_wait_for_termination): Move
  after wait_for_termination_1.
modified:
  src/ChangeLog
  src/sysdep.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-05-01 00:04:17 +0000
+++ b/src/ChangeLog     2011-05-01 08:52:17 +0000
@@ -1,3 +1,9 @@
+2011-05-01  Andreas Schwab  <address@hidden>
+
+       * sysdep.c (wait_for_termination_1): Make static.
+       (wait_for_termination, interruptible_wait_for_termination): Move
+       after wait_for_termination_1.
+
 2011-05-01  Lars Magne Ingebrigtsen  <address@hidden>
 
        * sysdep.c (interruptible_wait_for_termination): New function

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2011-05-01 00:04:17 +0000
+++ b/src/sysdep.c      2011-05-01 08:52:17 +0000
@@ -296,23 +296,8 @@
 int wait_debugging EXTERNALLY_VISIBLE;
 
 #ifndef MSDOS
-/* Wait for subprocess with process id `pid' to terminate and
-   make sure it will get eliminated (not remain forever as a zombie) */
-
-void
-wait_for_termination (int pid)
-{
-  wait_for_termination_1 (pid, 0);
-}
-
-/* Like the above, but allow keyboard interruption. */
-void
-interruptible_wait_for_termination (int pid)
-{
-  wait_for_termination_1 (pid, 1);
-}
-
-void
+
+static void
 wait_for_termination_1 (int pid, int interruptible)
 {
   while (1)
@@ -357,6 +342,22 @@
     }
 }
 
+/* Wait for subprocess with process id `pid' to terminate and
+   make sure it will get eliminated (not remain forever as a zombie) */
+
+void
+wait_for_termination (int pid)
+{
+  wait_for_termination_1 (pid, 0);
+}
+
+/* Like the above, but allow keyboard interruption. */
+void
+interruptible_wait_for_termination (int pid)
+{
+  wait_for_termination_1 (pid, 1);
+}
+
 /*
  *     flush any pending output
  *      (may flush input as well; it does not matter the way we use it)


reply via email to

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