We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68cf9b commit 93a8ed7Copy full SHA for 93a8ed7
networkd/network_monitor_thread.ml
@@ -259,7 +259,6 @@ let ip_watcher () =
259
);
260
Unix.close writeme;
261
let in_channel = Unix.in_channel_of_descr readme in
262
- debug "Started IP watcher thread";
263
let rec loop () =
264
let line = input_line in_channel in
265
(* Do not send events for link-local IPv6 addresses, and removed IPs *)
@@ -272,7 +271,13 @@ let ip_watcher () =
272
271
end;
273
loop ()
274
in
275
- loop ()
+ while true do
+ try
276
+ info "(Re)started IP watcher thread";
277
+ loop ()
278
+ with e ->
279
+ warn "Error in IP watcher: %s\n%s" (Printexc.to_string e) (Printexc.get_backtrace ())
280
+ done
281
282
let start () =
283
let dbg = "monitor_thread" in
0 commit comments