[PATCH] CONTRIB: log: emit warning when -sf/-sd cannot parse argument <2nd>

2018-02-05 Thread Chris Lane
Previously, -sf and -sd command line parsing used atol which cannot detect errors. I had a problem where I was doing -sf "$pid1 $pid2 $pid" and it was sending the gracefully terminate signal only to the first pid. The change uses strtol and checks endptr and errno to see if the parsing worked. It

[PATCH] CONTRIB: log: exit with warning when -sf/-sd cannot parse argument

2018-02-03 Thread Chris Lane
(from git format-patch -1 as per mail thread [PATCH] CONTRIB: log: emit warning when -sf/-sd cannot parse argument) Previously, -sf and -sd command line parsing used atol which cannot detect errors. I had a problem where I was doing -sf "$pid1 $pid2 $pid" and it was sending the gracefully termi

[PATCH] CONTRIB: log: emit warning when -sf/-sd cannot parse argument

2017-12-07 Thread Chris Lane
Previously, -sf and -sd command line parsing used atol which cannot detect errors. I had a problem where I was doing -sf "$pid1 $pid2 $pid" and it was sending the gracefully terminate signal only to the first pid. The change uses strtol and checks endptr and errno to see if the parsing worked. I