stress2: A two second timeout is too short
This commit is contained in:
parent
bcf5c7a8b1
commit
94c678cf19
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user