iptables: get the kill arguments the right way round

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2016-06-17 14:40:30 +01:00
parent a294b0f9b0
commit 3183d9c72a

View File

@ -65,10 +65,10 @@ let delete ({ proto; dport; ip; port } as p) =
let ic = open_in filename in
let pid = int_of_string (input_line ic) in
logf "Sending SIGTERM to %d" pid;
Unix.kill Sys.sigterm pid
Unix.kill pid Sys.sigterm
with e ->
logf "delete: failed to remove proxy for %s: %s" filename (Printexc.to_string e);
raise e
()
let parse_ip_port ip_port = match Astring.String.cut ~sep:":" ip_port with
| None ->