head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.52 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.50 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.48 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.46 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.44 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.42 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.40 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.38 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.36 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.34 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.32 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.30 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.28 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.26 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.24 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.22 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.20 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.18 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.16 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.14 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.12 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.10 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.8 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.6 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.4 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.2 cube-native-xorg-base:1.1; locks; strict; comment @# @; 1.2 date 2014.10.06.10.04.17; author he; state dead; branches; next 1.1; commitid N9UrOpMWAXfCO7Tx; 1.1 date 2008.08.26.17.18.14; author seb; state Exp; branches; next ; desc @@ 1.2 log @Rename the old patch-aa patch to patch-dbeacon.cpp. Add a patch for the matrix.pl script to quiet newer perl versions. Fix the pointer to the sixxs flags, as asked for in 2010(!) Bump PKGREVISION. @ text @$NetBSD: patch-aa,v 1.1 2008/08/26 17:18:14 seb Exp $ --- dbeacon.cpp.orig 2007-07-13 13:52:14.000000000 +0000 +++ dbeacon.cpp @@@@ -176,7 +176,7 @@@@ bool daemonize = false; bool use_syslog = false; bool past_init = false; -const char *pidfile = NULL; +static string pidfile; static void next_event(timeval *); static void insert_event(uint32_t, uint32_t); @@@@ -464,8 +464,8 @@@@ int main(int argc, char **argv) { perror("Failed to daemon()ize."); return -1; } - if (pidfile) { - FILE *f = fopen(pidfile, "w"); + if (!pidfile.empty()) { + FILE *f = fopen(pidfile.c_str(), "w"); if (f) { fprintf(f, "%u\n", getpid()); fclose(f); @@@@ -1657,8 +1657,8 @@@@ void dumpBigBwStats(int) { void sendLeaveReport(int) { send_report(LEAVE_REPORT); - if (daemonize && pidfile) - unlink(pidfile); + if (daemonize && !pidfile.empty()) + unlink(pidfile.c_str()); exit(0); } @ 1.1 log @Fix pidfile option handling (in configuration file case). Bump PKGREVISION to 1. @ text @d1 1 a1 1 $NetBSD$ @