texlive[65717] Build/source/texk/xdvik: avoid implicit wait and exit

commits+karl at tug.org commits+karl at tug.org
Thu Feb 2 23:57:47 CET 2023


Revision: 65717
          http://tug.org/svn/texlive?view=revision&revision=65717
Author:   karl
Date:     2023-02-02 23:57:47 +0100 (Thu, 02 Feb 2023)
Log Message:
-----------
avoid implicit wait and exit declarations for C99

Modified Paths:
--------------
    trunk/Build/source/texk/xdvik/ChangeLog
    trunk/Build/source/texk/xdvik/configure
    trunk/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4

Modified: trunk/Build/source/texk/xdvik/ChangeLog
===================================================================
--- trunk/Build/source/texk/xdvik/ChangeLog	2023-02-02 21:15:25 UTC (rev 65716)
+++ trunk/Build/source/texk/xdvik/ChangeLog	2023-02-02 22:57:47 UTC (rev 65717)
@@ -1,3 +1,9 @@
+2023-02-02  Florian Weimer  <fweimer at redhat.com>
+
+	* m4/xdvi-func-setsid-in-fork.m4.c99-4: avoid implicit
+	declarations of wait and exit, to appease C99.
+	https://tug.org/pipermail/tex-live/2023-January/048833.html
+
 2022-02-13  Paul Vojta  <vojta at math.berkeley.edu>
 
 	* dvi-init.c (make_backup_fp): call new try_dup, and existing

Modified: trunk/Build/source/texk/xdvik/configure
===================================================================
--- trunk/Build/source/texk/xdvik/configure	2023-02-02 21:15:25 UTC (rev 65716)
+++ trunk/Build/source/texk/xdvik/configure	2023-02-02 22:57:47 UTC (rev 65717)
@@ -16406,6 +16406,9 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 #ifdef HAVE_VFORK_H
 #include <vfork.h>
 #endif
@@ -16427,7 +16430,7 @@
 
     while (wait(&status) != child)
       ;
-    exit(
+    _exit(
 	 /* Was there some problem with vforking?  */
 	 child < 0
 

Modified: trunk/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4
===================================================================
--- trunk/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4	2023-02-02 21:15:25 UTC (rev 65716)
+++ trunk/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4	2023-02-02 22:57:47 UTC (rev 65717)
@@ -22,6 +22,9 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 #ifdef HAVE_VFORK_H
 #include <vfork.h>
 #endif]],
@@ -40,7 +43,7 @@
 
     while (wait(&status) != child)
       ;
-    exit(
+    _exit(
 	 /* Was there some problem with vforking?  */
 	 child < 0
 



More information about the tex-live-commits mailing list.