projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d8417
)
Ensure we quit on SIGTERM
author
Jens Axboe
<jaxboe@fusionio.com>
Wed, 11 May 2011 11:23:01 +0000
(13:23 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Wed, 11 May 2011 11:23:01 +0000
(13:23 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index 284e9f2e867583f963a1388917ec030d63157fce..76c6ebd73b25e0eefb1b093ef5914530ee5b9389 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-114,13
+114,6
@@
static void terminate_threads(int group_id)
}
}
-/*
- * Happens on thread runs with ctrl-c, ignore our own SIGQUIT
- */
-static void sig_quit(int sig)
-{
-}
-
static void sig_int(int sig)
{
if (threads) {
@@
-178,7
+171,7
@@
static void set_sig_handlers(void)
sigaction(SIGINT, &act, NULL);
memset(&act, 0, sizeof(act));
- act.sa_handler = sig_
qui
t;
+ act.sa_handler = sig_
in
t;
act.sa_flags = SA_RESTART;
sigaction(SIGTERM, &act, NULL);
}