We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68eddb6 + e972d38 commit 441aa56Copy full SHA for 441aa56
t/fork.t
@@ -42,8 +42,7 @@ for my $i (1 .. $children) {
42
} else {
43
# in a child we can't keep the count properly so we do it manually
44
# make sure that child 1 dies first
45
- srand();
46
- my $time = (($i-1) * 5) +int(rand(5));
+ my $time = ($i-1) * 3;
47
print "# child $i sleeping for $time seconds\n";
48
sleep($time);
49
my $count = $i + 1;
@@ -76,8 +75,7 @@ for my $i (1 .. $children) {
76
75
# parent process
77
next;
78
79
80
81
82
83
my $count = 5 + $i;
0 commit comments