diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
commit | 7792c21583f7131ad63a9cb6e25b7ef38652d3a7 (patch) | |
tree | 35ae86a1ec3a303f6ac7c0146111c635eff41fb4 /sysutils/monitord/files/patch-monitord.c | |
parent | - Switch databases/libmemcache to USES=libtool, drop .la files (diff) |
Rename sysutils/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363335
Diffstat (limited to 'sysutils/monitord/files/patch-monitord.c')
-rw-r--r-- | sysutils/monitord/files/patch-monitord.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/monitord/files/patch-monitord.c b/sysutils/monitord/files/patch-monitord.c new file mode 100644 index 000000000000..6561b7ac9d79 --- /dev/null +++ b/sysutils/monitord/files/patch-monitord.c @@ -0,0 +1,29 @@ +--- monitord.c.orig 2003-01-16 21:39:44.000000000 +0000 ++++ monitord.c 2011-11-24 23:12:13.468148722 +0000 +@@ -85,8 +85,8 @@ + setsid (); + break; + } +- default: +- exit(1); ++ default: // The parent exits ++ exit(0); + } + + /* Read the configuration file, saving it in *file[] and return the number of lines +@@ -454,13 +454,13 @@ + + struct timeval *tp; + struct timezone *tzp; +- const time_t *time; ++ time_t *time; + char *buf; + + buf = (char *) malloc ( (size_t) _BUFSIZE ); // init the time buffer + tp = (struct timeval *) malloc ( (size_t) sizeof (struct timeval) ); // init the time buffer + tzp = (struct timezone *) malloc ( (size_t) sizeof (struct timezone) ); // init the timezone buffer +- time = (const time_t *) malloc ( (size_t) sizeof (time_t) ); // init the timezone buffer ++ time = (time_t *) malloc ( (size_t) sizeof (time_t) ); // init the timezone buffer + + /* Get time of day in seconds since Epoch */ + gettimeofday (tp, tzp); |