From 53030c527eaac6ea2d6acbf501569d575fef9d41 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 17 Jul 2016 12:52:42 +0000 Subject: upgrade: avoid syslog call if execve fails We cannot safely call syslog on all platforms under vfork; but we have normal exit handling to tell us of the presence of execve errors, just not which. --- upgrade.c | 1 - 1 file changed, 1 deletion(-) diff --git a/upgrade.c b/upgrade.c index cda8700..b01b514 100644 --- a/upgrade.c +++ b/upgrade.c @@ -131,7 +131,6 @@ pid_t mog_upgrade_spawn(void) if (pid == 0) { mog_svc_upgrade_prepare(); execve(execfile, start.argv, start.envp); - syslog(LOG_ERR, "execve %s failed for upgrade: %m", execfile); _exit(2); } else if (pid > 0) { mog_process_register(pid, MOG_PROC_UPGRADE); -- cgit v1.2.3-24-ge0c7