$NetBSD: patch-af,v 1.3 2003/05/22 11:41:03 abs Exp $ --- spamd/spamd.raw.orig 2003-05-20 07:06:18.000000000 +0100 +++ spamd/spamd.raw @@ -1009,7 +1009,8 @@ sub kill_handler use POSIX 'setsid'; sub daemonize { - $0 = join(' ', $0, @ARGV) unless($opt{'debug'});; # pretty command line in ps + # no pretty 'ps' command line (easier for NetBSD rc script) + # $0 = join(' ', $0, @ARGV) unless($opt{'debug'});; # pretty command line in ps chdir '/' or die "Can't chdir to '/': $!"; $SIG{__WARN__} = sub { logmsg($_[0]); }; open STDIN,'/dev/null' or die "Can't read '/dev/null': $!";