mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
iptables: get the kill
arguments the right way round
Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
a294b0f9b0
commit
3183d9c72a
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user