texinfo-commits
[Top][All Lists]
Advanced

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

[7538] use mkfifo instead of mknod


From: gavinsmith0123
Subject: [7538] use mkfifo instead of mknod
Date: Wed, 7 Dec 2016 20:45:09 +0000 (UTC)

Revision: 7538
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7538
Author:   gavin
Date:     2016-12-07 20:45:09 +0000 (Wed, 07 Dec 2016)
Log Message:
-----------
use mkfifo instead of mknod

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/t/Init-inter.inc

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-12-03 17:25:31 UTC (rev 7537)
+++ trunk/ChangeLog     2016-12-07 20:45:09 UTC (rev 7538)
@@ -1,3 +1,8 @@
+2016-12-07  Gavin Smith  <address@hidden>
+
+       * info/t/Init-inter.inc: Use mkfifo instead of mknod for better 
+       portability.
+
 2016-12-03  Gavin Smith  <address@hidden>
 
        * tp/Texinfo/Report.pm (errors): Do not sort errors by line 

Modified: trunk/info/t/Init-inter.inc
===================================================================
--- trunk/info/t/Init-inter.inc 2016-12-03 17:25:31 UTC (rev 7537)
+++ trunk/info/t/Init-inter.inc 2016-12-07 20:45:09 UTC (rev 7538)
@@ -67,17 +67,17 @@
 
 # Create named pipes to communicate with pseudotty program, or quit.
 rm -f $PIPEIN $PTY_TYPE # must already be defined
-if findprog mknod; then # check for mknod to give a better error msg
-  mknod $PIPEIN p
-  mknod $PTY_TYPE p
+if findprog mkfifo; then
+  mkfifo $PIPEIN
+  mkfifo $PTY_TYPE
   #
   if test ! -r $PIPEIN || test ! -r $PTY_TYPE; then
-    echo "$0: could not mknod pipes" >&2
+    echo "$0: could not mkfifo pipes" >&2
     exit 77
   fi
   # ok, we'll proceed with the test.
 else
-  echo "$0: mknod program not found - cannot make named pipes" >&2
+  echo "$0: mkfifo program not found - cannot make named pipes" >&2
   exit 77
 fi
 




reply via email to

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