home *** CD-ROM | disk | FTP | other *** search
- *** HISTORY.orig Thu Apr 11 08:11:34 1991
- --- HISTORY Thu Apr 11 08:15:12 1991
- ***************
- *** 1,7 ****
- ! RELEASE HISTORY
-
- Date Release Patch Description
- -------------------------------------------------------------------------------
- ! 03/30/91 1.0 0 Initial release to net
- 04/09/91 1.0 1 Fixed stupidity with ups_time alarm setting and
- ! added version stuff
- --- 1,9 ----
- ! UPSD RELEASE HISTORY art@pilikia.pegasus.com
-
- Date Release Patch Description
- -------------------------------------------------------------------------------
- ! 03/30/91 1.0 0 Initial release to net.
- 04/09/91 1.0 1 Fixed stupidity with ups_time alarm setting and
- ! added version stuff.
- ! 04/10/91 1.0 2 Added log file locking, only 1 upsd can be running
- ! now. Also added date to version string.
- *** common.h.orig Thu Apr 11 08:11:34 1991
- --- common.h Thu Apr 11 08:15:12 1991
- ***************
- *** 12,17 ****
- --- 12,18 ----
- #include <string.h>
- #include <fcntl.h>
- #include <time.h>
- + #include <unistd.h>
- #include <sys/types.h>
- #include <sys/termio.h>
- #include <sys/signal.h>
- *** funcs.c.orig Thu Apr 11 08:11:35 1991
- --- funcs.c Thu Apr 11 08:15:12 1991
- ***************
- *** 153,158 ****
- --- 153,162 ----
- if ((log_fd = open(ups_log, LOG_FLAGS, LOG_PERMS)) == ERR)
- exit(1);
-
- + /* and advisory lock it */
- + if (lockf(log_fd, F_TLOCK, 0L) == ERR)
- + exit(1);
- +
- writelog(START_MSG);
-
- /* open blocks on UPS switch to battery */
- ***************
- *** 292,301 ****
- {
- char *basename();
-
- ! /* display version if foreground */
- if (signal(SIGINT, SIG_IGN) != SIG_IGN)
- ! fprintf(stderr, "%s v%d.%d patchlevel %d\n", basename(s),
- ! RELEASE, REVISION, PATCHLEVEL);
- }
-
- /*
- --- 296,306 ----
- {
- char *basename();
-
- ! /* display version in foreground */
- if (signal(SIGINT, SIG_IGN) != SIG_IGN)
- ! fprintf(stderr, "%s release %s version %d.%d patchlevel %d\n",
- ! basename(s), RELEASE_DATE, RELEASE, REVISION,
- ! PATCHLEVEL);
- }
-
- /*
- *** ups.orig Thu Apr 11 08:11:35 1991
- --- ups Thu Apr 11 08:15:12 1991
- ***************
- *** 10,14 ****
- set `who -r`
- if [ $9 = "S" -a -x /etc/upsd ]
- then
- ! /etc/upsd
- fi
- --- 10,14 ----
- set `who -r`
- if [ $9 = "S" -a -x /etc/upsd ]
- then
- ! /etc/upsd &
- fi
- *** version.h.orig Thu Apr 11 08:11:35 1991
- --- version.h Thu Apr 11 08:15:12 1991
- ***************
- *** 11,14 ****
- #define RELEASE_DATE "03/30/91"
- #define RELEASE 1
- #define REVISION 0
- ! #define PATCHLEVEL 1
- --- 11,14 ----
- #define RELEASE_DATE "03/30/91"
- #define RELEASE 1
- #define REVISION 0
- ! #define PATCHLEVEL 2
-