* bootstrap.conf (gnulib_modules): Add execvp which as a different
prototype on Windows along with other issues mentioned in the Gnulib
manual.
* src/nohup.c (main): Check if SIGHUP is defined.
---
 bootstrap.conf | 1 +
 src/nohup.c    | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/bootstrap.conf b/bootstrap.conf
index 0b46627a2..9d26a8501 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -91,6 +91,7 @@ gnulib_modules="
   error
   euidaccess
   exclude
+  execvp
   exitfail
   faccessat
   fadvise
diff --git a/src/nohup.c b/src/nohup.c
index c711ccd8e..cfdeaa133 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -206,7 +206,10 @@ main (int argc, char **argv)
   if (ferror (stderr))
     return exit_internal_failure;
 
+  /* Windows does not support SIGHUP.  */
+#ifdef SIGHUP
   signal (SIGHUP, SIG_IGN);
+#endif
 
   char **cmd = argv + optind;
   execvp (*cmd, cmd);
-- 
2.54.0


Reply via email to