aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/script
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-03-08 18:05:20 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-03-08 18:05:20 +0000
commit95d13d1b02e0280679959d1f5e5eff693d259ad6 (patch)
treecbd502e6fee68ec5481dc7746ddb608245bf203a /usr.bin/script
parent7b245cb846ca18c501059c5875a90792baf5821b (diff)
downloadsrc-95d13d1b02e0280679959d1f5e5eff693d259ad6.tar.gz
src-95d13d1b02e0280679959d1f5e5eff693d259ad6.zip
Notes
Diffstat (limited to 'usr.bin/script')
-rw-r--r--usr.bin/script/script.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 49446ef730ab..4c5e40273199 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -80,7 +80,6 @@ static struct termios tt;
static void done(int) __dead2;
static void doshell(char **);
-static void fail(void);
static void finish(void);
static void record(FILE *, char *, size_t, int);
static void consume(FILE *, off_t, char *, int);
@@ -347,14 +346,7 @@ doshell(char **av)
execl(shell, shell, "-i", (char *)NULL);
warn("%s", shell);
}
- fail();
-}
-
-static void
-fail(void)
-{
- (void)kill(0, SIGTERM);
- done(1);
+ exit(1);
}
static void