[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [Win32] fork_to_background() broken
From: |
Gisle Vanem |
Subject: |
[Bug-wget] [Win32] fork_to_background() broken |
Date: |
Wed, 21 Feb 2018 17:30:48 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
The recent change of prototype of 'fork_to_background()'
broke the Windows build:
mswindows.c(329,1) : error: conflicting types for 'fork_to_background'
fork_to_background (void)
^
./utils.h(74,6) : note: previous declaration is here
bool fork_to_background (void);
^
A simplistic patch:
--- a/src/mswindows.c 2018-02-21 16:03:16
+++ b/mswindows.c 2018-02-21 16:24:06
@@ -312,7 +312,7 @@
/* This is the corresponding Windows implementation of the
fork_to_background() function in utils.c. */
-void
+bool
fork_to_background (void)
{
int rv;
@@ -332,6 +345,18 @@
abort ();
}
/* If we get here, we're the child. */
+ return false;
}
(ignoring the 'logfile_changed' stuff).
--
--gv
- [Bug-wget] [Win32] fork_to_background() broken,
Gisle Vanem <=