Skip to content

Commit

Permalink
waitPidStop: reduce sleep time to 10ms
Browse files Browse the repository at this point in the history
Kill is a fast syscall, so we can reduce the sleep time from 100ms to
10ms in hope to speed things up a bit.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Jan 19, 2023
1 parent fd42c1d commit 4faa139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/oci_conmon_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ func waitPidStop(pid int, timeout time.Duration) error {
}
logrus.Errorf("Pinging PID %d with signal 0: %v", pid, err)
}
time.Sleep(100 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
}
}
}
Expand Down

0 comments on commit 4faa139

Please sign in to comment.