diff options
author | murray <murray@FreeBSD.org> | 2001-09-22 18:10:56 +0000 |
---|---|---|
committer | murray <murray@FreeBSD.org> | 2001-09-22 18:10:56 +0000 |
commit | 0e9a3ecd09c9a1c980b455127f6835e4e29b17d8 (patch) | |
tree | c80fbd758ae04d9625cfdb8e1669e7cd204fafb3 /usr.sbin/sade/system.c | |
parent | c71a3e927a672b31aa2ee41630d9101bfebc001e (diff) | |
download | FreeBSD-src-0e9a3ecd09c9a1c980b455127f6835e4e29b17d8.zip FreeBSD-src-0e9a3ecd09c9a1c980b455127f6835e4e29b17d8.tar.gz |
Add a function to free all of sysinstall's internal variables from the
environment. This fixes an annoying bug where hitting Ctrl-C and
telling sysinstall to 'restart' will do no such thing since many of
the options are still set and so you won't be prompted for them
again.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r-- | usr.sbin/sade/system.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index 077cf82..0a1a040 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; } |