]> granicus.if.org Git - sysstat/commit
Fix missing "}" and "]" in JSON output when stopped by SIGINT
authorHuang Ying <ying.huang@intel.com>
Sun, 3 Mar 2019 06:11:29 +0000 (14:11 +0800)
committerHuang Ying <ying.huang@intel.com>
Sun, 3 Mar 2019 06:11:29 +0000 (14:11 +0800)
commit021dd04dedf30d94d155bcc7c8926d1a93e30c5b
tree667241416620ac7b21f448cda17ab5ca789a9d71
parent3e3fa85fcebfc7937a344eca1f0f1d24bbccc834
Fix missing "}" and "]" in JSON output when stopped by SIGINT

When mpstat is stopped by SIGINT, the JSON output will miss the
trailing "}" and "]" because SIGINT handler isn't called.  Fixed this
via setup SIGINT handler for JSON output too.
mpstat.c