summaryrefslogtreecommitdiff
path: root/text-utils
diff options
context:
space:
mode:
authorMarek Polacek <mmpolacek@gmail.com>2010-10-29 00:55:07 +0200
committerKarel Zak <kzak@redhat.com>2010-10-29 13:26:25 +0200
commit50644ff4de8126eb132fa94ae4645fb19871f5b6 (patch)
tree1984291cf0520d6123ac440611fc74d7ee10644d /text-utils
parente98f4af950a64db188e0a9f3eed20fefaa463a99 (diff)
downloadutil-linux-old-50644ff4de8126eb132fa94ae4645fb19871f5b6.tar.gz
use _exit() instead of exit() in sighandlers
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/rev.c2
-rw-r--r--text-utils/ul.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 907b032b..7a42d7e4 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -66,7 +66,7 @@ wchar_t *buf;
static void sig_handler(int signo)
{
free(buf);
- exit(EXIT_SUCCESS);
+ _exit(EXIT_SUCCESS);
}
static void __attribute__((__noreturn__)) usage(FILE *out)
diff --git a/text-utils/ul.c b/text-utils/ul.c
index 4601e3c7..dbcc3214 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -604,7 +604,7 @@ needcol(int col) {
static void sig_handler(int signo)
{
- exit(EXIT_SUCCESS);
+ _exit(EXIT_SUCCESS);
}
static void exitbuf(void)