hastd.c (330449) | hastd.c (368759) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2009-2010 The FreeBSD Foundation 5 * Copyright (c) 2010-2011 Pawel Jakub Dawidek <pawel@dawidek.net> 6 * All rights reserved. 7 * 8 * This software was developed by Pawel Jakub Dawidek under sponsorship from --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2009-2010 The FreeBSD Foundation 5 * Copyright (c) 2010-2011 Pawel Jakub Dawidek <pawel@dawidek.net> 6 * All rights reserved. 7 * 8 * This software was developed by Pawel Jakub Dawidek under sponsorship from --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/11/sbin/hastd/hastd.c 330449 2018-03-05 07:26:05Z eadler $"); | 34__FBSDID("$FreeBSD: stable/11/sbin/hastd/hastd.c 368759 2020-12-18 12:24:33Z eugen $"); |
35 36#include <sys/param.h> 37#include <sys/linker.h> 38#include <sys/module.h> 39#include <sys/stat.h> 40#include <sys/wait.h> 41 42#include <err.h> --- 1174 unchanged lines hidden (view full) --- 1217 } 1218 } 1219 argc -= optind; 1220 argv += optind; 1221 1222 pjdlog_init(PJDLOG_MODE_STD); 1223 pjdlog_debug_set(debuglevel); 1224 | 35 36#include <sys/param.h> 37#include <sys/linker.h> 38#include <sys/module.h> 39#include <sys/stat.h> 40#include <sys/wait.h> 41 42#include <err.h> --- 1174 unchanged lines hidden (view full) --- 1217 } 1218 } 1219 argc -= optind; 1220 argv += optind; 1221 1222 pjdlog_init(PJDLOG_MODE_STD); 1223 pjdlog_debug_set(debuglevel); 1224 |
1225 closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO), STDERR_FILENO) + 1); |
|
1225 g_gate_load(); 1226 1227 /* 1228 * When path to the configuration file is relative, obtain full path, 1229 * so we can always find the file, even after daemonizing and changing 1230 * working directory to /. 1231 */ 1232 if (cfgpath[0] != '/') { --- 107 unchanged lines hidden --- | 1226 g_gate_load(); 1227 1228 /* 1229 * When path to the configuration file is relative, obtain full path, 1230 * so we can always find the file, even after daemonizing and changing 1231 * working directory to /. 1232 */ 1233 if (cfgpath[0] != '/') { --- 107 unchanged lines hidden --- |