diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-07-21 11:31:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 11:31:54 +0300 |
commit | e90d32d0fa368968a379f97516744e9d99312692 (patch) | |
tree | 0692dac4d4ed643796545f7de94ed4121b03aabf /collectors | |
parent | def03a151cd042748b2687729a922d2f93fbd570 (diff) |
charts.d.plugin: never use `-t` option for `timeout` (#9568)
Diffstat (limited to 'collectors')
-rwxr-xr-x | collectors/charts.d.plugin/charts.d.plugin.in | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/collectors/charts.d.plugin/charts.d.plugin.in b/collectors/charts.d.plugin/charts.d.plugin.in index e28926b636..62363f3dbc 100755 --- a/collectors/charts.d.plugin/charts.d.plugin.in +++ b/collectors/charts.d.plugin/charts.d.plugin.in @@ -294,15 +294,7 @@ run() { if [ "z${1}" = "z-t" -a "${2}" != "0" ]; then t="${2}" shift 2 - - case "$(getosid)" in - "alpine") - timeout -t ${t} "${@}" 2>"${TMP_DIR}/run.${pid}" - ;; - *) - timeout ${t} "${@}" 2>"${TMP_DIR}/run.${pid}" - ;; - esac + timeout "${t}" "${@}" 2>"${TMP_DIR}/run.${pid}" ret=$? else "${@}" 2>"${TMP_DIR}/run.${pid}" |