+ if (td->runstate < TD_EXITED) {
+ /*
+ * check if someone quit or got killed in an unusual way
+ */
+ ret = waitpid(td->pid, &status, WNOHANG);
+ if (ret < 0)
+ perror("waitpid");
+ else if ((ret == td->pid) && WIFSIGNALED(status)) {
+ int sig = WTERMSIG(status);
+
+ log_err("fio: pid=%d, got signal=%d\n", td->pid, sig);
+ td_set_runstate(td, TD_REAPED);
+ goto reaped;
+ }
+ }
+
+ if (td->runstate != TD_EXITED) {
+ if (td->runstate < TD_RUNNING)
+ pending++;
+