stress2: A two second timeout is too short

This commit is contained in:
Peter Holm 2021-09-14 07:50:26 +00:00
parent bcf5c7a8b1
commit 94c678cf19

View File

@ -58,7 +58,7 @@ reader(void) {
setproctitle("reader");
signal(SIGALRM, handler2);
alarm(2);
alarm(60);
if ((fd = open(path, O_RDWR, 0600)) < 0) {
unlink(path);
err(1, "open(%s)", path);
@ -81,7 +81,7 @@ writer(void) {
int fd;
signal(SIGALRM, handler2);
alarm(2);
alarm(60);
setproctitle("writer");
if ((fd = open(path, O_RDWR, 0600)) < 0) {