mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
oxenstored: move sd_notify_ready out of main loop
Oxenstored only needs to notify systemd its readiness state once. Move sd_notify_ready out of main loop. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Dave Scott <dave.scott@eu.citrix.com> Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
da743d1c90
commit
18dd9f7fc2
1 file changed
+2
-2
@@ -428,11 +428,11 @@ let _ =
|
||||
process_domains store cons domains
|
||||
in
|
||||
|
||||
if Systemd.launched_by_systemd () then
|
||||
Systemd.sd_notify_ready ();
|
||||
while not !quit
|
||||
do
|
||||
try
|
||||
if Systemd.launched_by_systemd() then
|
||||
Systemd.sd_notify_ready ();
|
||||
main_loop ()
|
||||
with exc ->
|
||||
error "caught exception %s" (Printexc.to_string exc);
|
||||
|
||||