diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-04-16 17:34:30 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-04-16 17:34:30 (GMT) |
commit | e5964f928b92018a912288591d43d44b64a26c22 (patch) | |
tree | 16c73e0c7db5b4fa8f2c2b40b768e7b04da203e5 /abs/extra/ddclient/ddclient-foreground.patch | |
parent | 8e41fcf367697e694aa00b9c6e5e0613803548b0 (diff) | |
download | linhes_pkgbuild-e5964f928b92018a912288591d43d44b64a26c22.zip linhes_pkgbuild-e5964f928b92018a912288591d43d44b64a26c22.tar.gz linhes_pkgbuild-e5964f928b92018a912288591d43d44b64a26c22.tar.bz2 |
ddclient: update to 3.8.2. refs #961
Diffstat (limited to 'abs/extra/ddclient/ddclient-foreground.patch')
-rw-r--r-- | abs/extra/ddclient/ddclient-foreground.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/abs/extra/ddclient/ddclient-foreground.patch b/abs/extra/ddclient/ddclient-foreground.patch deleted file mode 100644 index a814ede..0000000 --- a/abs/extra/ddclient/ddclient-foreground.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- ../ddclient-orig/ddclient 2009-10-19 22:45:15.000000000 +1030 -+++ ddclient 2009-10-19 22:50:11.000000000 +1030 -@@ -307,6 +307,7 @@ - my %variables = ( - 'global-defaults' => { - 'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')), -+ 'foreground' => setv(T_BOOL, 0, 0, 1, 0, undef), - 'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef), - 'cache' => setv(T_FILE, 0, 0, 1, "$cachedir$program.cache", undef), - 'pid' => setv(T_FILE, 0, 0, 1, "", undef), -@@ -535,6 +536,7 @@ - "usage: ${program} [options]", - "options are:", - [ "daemon", "=s", "-daemon delay : run as a daemon, specify delay as an interval." ], -+ [ "foreground", "!", "-foreground : do not fork" ], - [ "proxy", "=s", "-proxy host : use 'host' as the HTTP proxy" ], - [ "server", "=s", "-server host : update DNS information on 'host'" ], - [ "protocol", "=s", "-protocol type : update protocol used" ], -@@ -623,7 +625,10 @@ - $SIG{'HUP'} = sub { $caught_hup = 1; }; - $SIG{'TERM'} = sub { $caught_term = 1; }; - $SIG{'KILL'} = sub { $caught_kill = 1; }; --if (opt('daemon') && !opt('force')) { -+# don't fork() if foreground or force is on -+if (opt('foreground') || opt('force')) { -+ ; -+} elsif (opt('daemon')) { - $SIG{'CHLD'} = 'IGNORE'; - my $pid = fork; - if ($pid < 0) { -@@ -633,12 +638,15 @@ - exit 0; - } - $SIG{'CHLD'} = 'DEFAULT'; -- $opt{'syslog'} = 1; - open(STDOUT, ">/dev/null"); - open(STDERR, ">/dev/null"); - open(STDIN, "</dev/null"); -+} - -+# write out the pid file if we're daemon'ized -+if(opt('daemon')) { - write_pid(); -+ $opt{'syslog'} = 1; - } - - umask 077; |