head 1.3; access; symbols OPENPKG_E1_MP_HEAD:1.3 OPENPKG_E1_MP:1.3 OPENPKG_E1_MP_2_STABLE:1.3 OPENPKG_E1_FP:1.3 OPENPKG_2_STABLE_MP:1.3 OPENPKG_2_STABLE_20061018:1.3 OPENPKG_2_STABLE_20060622:1.3 OPENPKG_2_STABLE:1.3.0.12 OPENPKG_2_STABLE_BP:1.3 OPENPKG_2_5_RELEASE:1.3 OPENPKG_2_5_SOLID:1.3.0.10 OPENPKG_2_5_SOLID_BP:1.3 OPENPKG_2_4_RELEASE:1.3 OPENPKG_2_4_SOLID:1.3.0.8 OPENPKG_2_4_SOLID_BP:1.3 OPENPKG_CW_FP:1.3 OPENPKG_2_3_RELEASE:1.3 OPENPKG_2_3_SOLID:1.3.0.6 OPENPKG_2_3_SOLID_BP:1.3 OPENPKG_2_2_RELEASE:1.3 OPENPKG_2_2_SOLID:1.3.0.4 OPENPKG_2_2_SOLID_BP:1.3 OPENPKG_2_1_RELEASE:1.3 OPENPKG_2_1_SOLID:1.3.0.2 OPENPKG_2_1_SOLID_BP:1.3 OPENPKG_2_0_RELEASE:1.2 OPENPKG_2_0_SOLID:1.2.0.2 OPENPKG_2_0_SOLID_BP:1.2 OPENPKG_1_3_RELEASE:1.1.4.1 OPENPKG_1_3_SOLID:1.1.4.1.0.2 OPENPKG_1_3_SOLID_BP:1.1.4.1 OPENPKG_1_STABLE_MP:1.2 OPENPKG_1_2_RELEASE:1.1 OPENPKG_1_2_SOLID:1.1.0.6 OPENPKG_1_2_SOLID_BP:1.1 OPENPKG_1_STABLE:1.1.0.4 OPENPKG_1_STABLE_BP:1.1 OPENPKG_1_1_RELEASE:1.1 OPENPKG_1_1_SOLID:1.1.0.2 OPENPKG_1_1_SOLID_BP:1.1; locks; strict; comment @# @; 1.3 date 2004.05.17.18.34.43; author rse; state Exp; branches; next 1.2; 1.2 date 2003.07.02.13.50.21; author thl; state Exp; branches; next 1.1; 1.1 date 2002.03.15.18.04.31; author rse; state Exp; branches 1.1.4.1; next ; 1.1.4.1 date 2003.07.24.20.45.07; author rse; state Exp; branches; next ; desc @@ 1.3 log @upgrading package: prngd 0.9.27 -> 0.9.28 @ text @--- prngd.c.orig Tue May 8 14:38:10 2001 +++ prngd.c Thu Aug 23 09:57:00 2001 @@@@ -17,6 +17,13 @@@@ #include "prngd.h" +#ifndef O_SYNC +#define O_SYNC 0 +#endif +#ifndef O_RSYNC +#define O_RSYNC 0 +#endif + static int randsavefd = -1; int debug = 0; int fg = 0; @ 1.2 log @fix application bug syslogging an uninitialized buffer when daemon shuts down @ text @a16 17 --- serverloop.c.orig Wed Dec 18 13:19:00 2002 +++ serverloop.c Wed Jul 2 15:38:54 2003 @@@@ -57,12 +57,13 @@@@ (void)fprintf(stderr, "Caught SIGTERM, shutting down\n"); close_seedfile(); if (pidfile) { - if (remove(pidfile)) + if (remove(pidfile) == -1) { (void)snprintf(msg_buf, sizeof(msg_buf), "Could not remove pidfile %s", pidfile); msg_buf[sizeof(msg_buf) - 1] = '\0'; error_error(msg_buf, errno); exit(EXIT_FAILURE); + } } exit(EXIT_SUCCESS); } @ 1.1 log @move patch @ text @d17 17 @ 1.1.4.1 log @mass Merge-From-CURRENT (MFC) in preparation for OpenPKG 1.3 [class BASE only] @ text @a16 17 --- serverloop.c.orig Wed Dec 18 13:19:00 2002 +++ serverloop.c Wed Jul 2 15:38:54 2003 @@@@ -57,12 +57,13 @@@@ (void)fprintf(stderr, "Caught SIGTERM, shutting down\n"); close_seedfile(); if (pidfile) { - if (remove(pidfile)) + if (remove(pidfile) == -1) { (void)snprintf(msg_buf, sizeof(msg_buf), "Could not remove pidfile %s", pidfile); msg_buf[sizeof(msg_buf) - 1] = '\0'; error_error(msg_buf, errno); exit(EXIT_FAILURE); + } } exit(EXIT_SUCCESS); } @