diff options
| -rw-r--r-- | usr/src/cmd/mdb/common/mdb/mdb_target.h | 8 | ||||
| -rw-r--r-- | usr/src/cmd/svc/startd/restarter.c | 2 | ||||
| -rw-r--r-- | usr/src/cmd/svc/startd/startd.h | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/usr/src/cmd/mdb/common/mdb/mdb_target.h b/usr/src/cmd/mdb/common/mdb/mdb_target.h index d886a0a4d0..b511ba07c3 100644 --- a/usr/src/cmd/mdb/common/mdb/mdb_target.h +++ b/usr/src/cmd/mdb/common/mdb/mdb_target.h @@ -27,8 +27,6 @@ #ifndef _MDB_TARGET_H #define _MDB_TARGET_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/utsname.h> #include <sys/types.h> #include <gelf.h> @@ -232,7 +230,11 @@ typedef int mdb_tgt_sym_f(void *, const GElf_Sym *, const char *, /* * Values for selecting symbols of interest by binding and type. These flags - * can be used to construct a bitmask to pass to mdb_tgt_symbol_iter(): + * can be used to construct a bitmask to pass to mdb_tgt_symbol_iter(). The + * module API has its own slightly different names for these values. If you are + * adding a new flag here, you should consider exposing it in the module API. + * If you are changing these flags and their meanings, you will need to update + * the module API implementation to account for those changes. */ #define MDB_TGT_BIND_LOCAL 0x0001 /* Local (static-scope) symbols */ #define MDB_TGT_BIND_GLOBAL 0x0002 /* Global symbols */ diff --git a/usr/src/cmd/svc/startd/restarter.c b/usr/src/cmd/svc/startd/restarter.c index c485f1895f..6adb323289 100644 --- a/usr/src/cmd/svc/startd/restarter.c +++ b/usr/src/cmd/svc/startd/restarter.c @@ -1153,7 +1153,7 @@ stop_instance(scf_handle_t *local_handle, restarter_inst_t *inst, if (method_rate_critical(inst)) { log_instance(inst, B_TRUE, "Failing too " "quickly, throttling."); - sleep(WT_SVC_ERR_THROTTLE); + (void) sleep(WT_SVC_ERR_THROTTLE); } } else { (void) update_fault_count(inst, FAULT_COUNT_RESET); diff --git a/usr/src/cmd/svc/startd/startd.h b/usr/src/cmd/svc/startd/startd.h index e4f37a4213..e204fb829f 100644 --- a/usr/src/cmd/svc/startd/startd.h +++ b/usr/src/cmd/svc/startd/startd.h @@ -406,8 +406,8 @@ typedef enum { #define RINST_RETAKE_MASK 0x0f000000 #define RINST_START_TIMES 10 /* up to 10 fails to consider */ -#define RINST_FAILURE_RATE_NS 600000000000LL /* N failures/10 minutes */ -#define RINST_WT_SVC_FAILURE_RATE_NS NANOSEC /* N failures/second */ +#define RINST_FAILURE_RATE_NS 600000000000LL /* 1 failure/10 minutes */ +#define RINST_WT_SVC_FAILURE_RATE_NS NANOSEC /* 1 failure/second */ /* Number of events in the queue when we start dropping ADMIN events. */ #define RINST_QUEUE_THRESHOLD 100 |
