summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-15 16:35:03 -0400
committerjim-p <jimp@pfsense.org>2012-05-15 16:36:48 -0400
commitac4bc5853f75a8f8467f5c53704f33e2066c3da6 (patch)
tree4846e22e2836cbb1e60877906b4850ca1638c07a /etc
parentd80eae9a47e77e7ca28d5b15736943eb7c4a9db8 (diff)
downloadpfsense-ac4bc5853f75a8f8467f5c53704f33e2066c3da6.zip
pfsense-ac4bc5853f75a8f8467f5c53704f33e2066c3da6.tar.gz
Clear process signals before exec() or ntpd misbehaves if called from PHP on i386.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 22efd22..7807ef0 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1141,7 +1141,10 @@ function system_ntp_configure() {
exec("/bin/mkdir -p /var/empty && chmod ug+rw /var/empty/.");
/* start opentpd, set time now and use /var/etc/ntpd.conf */
+ $oldset = array();
+ pcntl_sigprocmask(SIG_SETMASK, array(), $oldset);
exec("/usr/sbin/ntpd -g -c {$g['varetc_path']}/ntpd.conf");
+ pcntl_sigprocmask(SIG_SETMASK, $oldset);
// Note that we are starting up
log_error("NTPD is starting up.");
OpenPOWER on IntegriCloud