Signed-off-by: Jens Axboe <axboe@kernel.dk>
void fio_terminate_threads(int group_id)
{
struct thread_data *td;
void fio_terminate_threads(int group_id)
{
struct thread_data *td;
int i;
dprint(FD_PROCESS, "terminate group_id=%d\n", group_id);
int i;
dprint(FD_PROCESS, "terminate group_id=%d\n", 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 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))