groff-commit
[Top][All Lists]
Advanced

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

[groff] 16/27: [pre-html]: Die if neither `fork()` nor `spawn()`.


From: G. Branden Robinson
Subject: [groff] 16/27: [pre-html]: Die if neither `fork()` nor `spawn()`.
Date: Sat, 2 Jul 2022 00:43:13 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f34e0787ff6a8ac7e13d5a4e54bdbe10097b92c1
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Jun 27 20:08:14 2022 -0500

    [pre-html]: Die if neither `fork()` nor `spawn()`.
    
    * src/preproc/html/pre-html.cpp (char_buffer::run_output_filter): Die if
      platform supports neither `fork()` nor `spawn()` for child process
      creation.
---
 ChangeLog                     | 6 ++++++
 src/preproc/html/pre-html.cpp | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b8fa8ef2..bd8fb6b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2022-06-28  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * src/preproc/html/pre-html.cpp
+       (char_buffer::run_output_filter): Die if platform supports
+       neither `fork()` nor `spawn()` for child process creation.
+
+2022-06-27  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * src/preproc/html/pre-html.cpp (cleanup): Add function to tidy
        memory before exiting.
        (main): Register aforementioned function with `atexit()`.  Die
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 0c4bb4af..21860b8f 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -1409,8 +1409,8 @@ int char_buffer::run_output_filter(int filter, int argc, 
char **argv)
 
 #else /* can't do asynchronous pipes! */
 
-  // TODO: code to support an MS-DOS style process model
-  //        should go here
+  // TODO: code to support an MS-DOS style process model should go here
+  fatal("output filtering not supported on this platform");
 
 #endif /* MAY_FORK_CHILD_PROCESS or MAY_SPAWN_ASYNCHRONOUS_CHILD */
 



reply via email to

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