summaryrefslogtreecommitdiff
path: root/usr.sbin/sade/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r--usr.sbin/sade/system.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index 077cf82bc9c7..0a1a040c3fcc 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/system.c
@@ -56,7 +56,10 @@ intr_reboot(dialogMenuItem *self)
static int
intr_restart(dialogMenuItem *self)
{
- execl(StartName, StartName, (char *)NULL);
+ int ret;
+ free_variables();
+ ret = execl(StartName, StartName, (char *)NULL);
+ msgDebug("execl failed (%s)\n", strerror(errno));
/* NOTREACHED */
return -1;
}