summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--time-config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/time-config.cpp b/time-config.cpp
index 9e70044..e6af708 100644
--- a/time-config.cpp
+++ b/time-config.cpp
@@ -533,11 +533,11 @@ int TimeConfig::modifyNtpSettings(const timeModes& newTimeMode)
// TODO : https://github.com/openbmc/phosphor-time-manager/issues/1
if (ntpChangeOp)
{
- system("systemctl restart systemd-timesyncd &");
+ r = system("systemctl restart systemd-timesyncd &");
}
else
{
- system("systemctl stop systemd-timesyncd &");
+ r = system("systemctl stop systemd-timesyncd &");
}
}
return r;
OpenPOWER on IntegriCloud