mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
21 lines
670 B
Diff
21 lines
670 B
Diff
|
diff -u ddclient-3.8.1/ddclient ddclient-3.8.1.patched/ddclient
|
||
|
--- ddclient-3.8.1/ddclient 2011-07-11 23:04:21.000000000 +0200
|
||
|
+++ ddclient-3.8.1.patched/ddclient 2012-11-08 11:52:31.930647236 +0100
|
||
|
@@ -19,6 +19,7 @@ use strict;
|
||
|
use Getopt::Long;
|
||
|
use Sys::Hostname;
|
||
|
use IO::Socket;
|
||
|
+use IO::Handle qw( );
|
||
|
|
||
|
my ($VERSION) = q$Revision: 157 $ =~ /(\d+)/;
|
||
|
|
||
|
@@ -675,7 +676,7 @@ $SIG{'TERM'} = sub { $caught_term = 1; };
|
||
|
$SIG{'KILL'} = sub { $caught_kill = 1; };
|
||
|
# don't fork() if foreground or force is on
|
||
|
if (opt('foreground') || opt('force')) {
|
||
|
- ;
|
||
|
+ STDOUT->autoflush(1);
|
||
|
} elsif (opt('daemon')) {
|
||
|
$SIG{'CHLD'} = 'IGNORE';
|
||
|
my $pid = fork;
|