Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
management_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sysop-bioinformatics
management_scripts
Commits
e9282dbb
Commit
e9282dbb
authored
18 years ago
by
Haarst, Jan van
Browse files
Options
Downloads
Patches
Plain Diff
another off by one bug removed
parent
4ca126b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fastcopy.pl
+5
-2
5 additions, 2 deletions
fastcopy.pl
with
5 additions
and
2 deletions
fastcopy.pl
+
5
−
2
View file @
e9282dbb
...
@@ -52,7 +52,10 @@ while ($number_of_sinks >0) {
...
@@ -52,7 +52,10 @@ while ($number_of_sinks >0) {
}
}
# All sinks are being worked on, now wait for them to finish.
# All sinks are being worked on, now wait for them to finish.
while
(
scalar
keys
%processes
)
{
while
(
scalar
keys
%processes
)
{
print
"
waiting for
"
.
(
scalar
keys
%processes
)
.
"
childs to exit
\n
";
print
"
waiting for
"
.
(
scalar
keys
%processes
);
print
"
child
";
print
"
s
"
if
(
scalar
keys
%processes
>
1
);
print
"
to exit
\n
";
sleep
10
;
sleep
10
;
}
}
# Print out errors
# Print out errors
...
@@ -90,7 +93,7 @@ sub REAPER {
...
@@ -90,7 +93,7 @@ sub REAPER {
sub
fork_sync
{
sub
fork_sync
{
# Fork as many processes as there are seeds
# Fork as many processes as there are seeds
foreach
(
@seeds
)
{
foreach
(
@seeds
)
{
$number_of_sinks
=
scalar
(
@sinks
)
-
1
;
$number_of_sinks
=
scalar
(
@sinks
);
# The while checks at the end of the loop, which is too late
# The while checks at the end of the loop, which is too late
next
if
$number_of_sinks
<=
0
;
next
if
$number_of_sinks
<=
0
;
# grab the seed and sink from the arrays
# grab the seed and sink from the arrays
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment