Skip to content

Commit

Permalink
seize: increase timeout of freezing processes
Browse files Browse the repository at this point in the history
The timeout between iterations should be the save oder
with scheduler timeslice, which is about 100 msec.

Currently we wait for inly 10 msec, which is obviously not enough.
  • Loading branch information
avagin committed Nov 26, 2015
1 parent 13d20ea commit d075176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seize.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int freeze_processes(void)
continue;
}

timeout = 10000000 * i;
timeout = 100000000 * (i + 1); /* 100 msec */
req.tv_nsec = timeout % 1000000000;
req.tv_sec = timeout / 1000000000;
nanosleep(&req, NULL);
Expand Down

0 comments on commit d075176

Please sign in to comment.