diff options
author | trociny <trociny@FreeBSD.org> | 2013-07-01 18:41:07 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-07-01 18:41:07 +0000 |
commit | 5092fcd6407b7957943a19df1a41c997dce8a9cf (patch) | |
tree | a6efa54fbdfc5a522fc71ccce8c8225d8e3f8854 /sbin/hastd | |
parent | cab3cc571031cfdb601898df1b6e7c531d5f87ce (diff) | |
download | FreeBSD-src-5092fcd6407b7957943a19df1a41c997dce8a9cf.zip FreeBSD-src-5092fcd6407b7957943a19df1a41c997dce8a9cf.tar.gz |
Make hastctl(1) ('list' command) output a worker pid.
Reviewed by: pjd
MFC after: 3 days
Diffstat (limited to 'sbin/hastd')
-rw-r--r-- | sbin/hastd/control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/hastd/control.c b/sbin/hastd/control.c index 3619fc6..922f507 100644 --- a/sbin/hastd/control.c +++ b/sbin/hastd/control.c @@ -271,6 +271,7 @@ control_status(struct hastd_config *cfg, struct nv *nvout, nv_add_string(nvout, compression_name(res->hr_compression), "compression%u", no); nv_add_string(nvout, role2str(res->hr_role), "role%u", no); + nv_add_int32(nvout, res->hr_workerpid, "workerpid%u", no); switch (res->hr_role) { case HAST_ROLE_PRIMARY: |