commit | 236062f7cea355bae9bbb6f5cd1953e78f36c6d8 | [log] [tgz] |
---|---|---|
author | Chris Lane <chris@disputingtaste.com> | Mon Feb 05 23:15:44 2018 +0000 |
committer | Willy Tarreau <w@1wt.eu> | Tue Feb 06 07:23:32 2018 +0100 |
tree | f9630cea1fbae276131bf24a6fcaa1ed43f7e697 | |
parent | 7d58b4d156fe159775e240a73aaad1bb76075af5 [diff] |
MINOR: init: 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 terminate signal only to the first pid. The change uses strtol and checks endptr and errno to see if the parsing worked. It will exit when the pid list is not parsed. [wt: this should be backported to 1.8]