projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wire up _weak posix_fadvise()
[fio.git]
/
libfio.c
diff --git
a/libfio.c
b/libfio.c
index 43e1a61aad8abbf217da11125ac6818defaaa2c8..ee5a0ead1707f66fc7418c2b0b964d72727912ee 100644
(file)
--- a/
libfio.c
+++ b/
libfio.c
@@
-127,6
+127,7
@@
void reset_fio_state(void)
{
groupid = 0;
thread_number = 0;
{
groupid = 0;
thread_number = 0;
+ stat_number = 0;
nr_process = 0;
nr_thread = 0;
done_secs = 0;
nr_process = 0;
nr_thread = 0;
done_secs = 0;
@@
-161,6
+162,7
@@
void td_set_runstate(struct thread_data *td, int runstate)
void fio_terminate_threads(int group_id)
{
struct thread_data *td;
void fio_terminate_threads(int group_id)
{
struct thread_data *td;
+ pid_t pid = getpid();
int i;
dprint(FD_PROCESS, "terminate group_id=%d\n", group_id);
int i;
dprint(FD_PROCESS, "terminate group_id=%d\n", group_id);
@@
-179,7
+181,7
@@
void fio_terminate_threads(int group_id)
continue;
else if (td->runstate < TD_RAMP)
kill(td->pid, SIGTERM);
continue;
else if (td->runstate < TD_RAMP)
kill(td->pid, SIGTERM);
- else {
+ else
if (pid != td->pid)
{
struct ioengine_ops *ops = td->io_ops;
if (ops && (ops->flags & FIO_SIGTERM))
struct ioengine_ops *ops = td->io_ops;
if (ops && (ops->flags & FIO_SIGTERM))