Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
blockchain
nucleo
Commits
2287a765
Commit
2287a765
authored
5 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
wait demasiado temprano
parent
af2c7fb7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/singlestart.sh
+7
-9
7 additions, 9 deletions
bin/singlestart.sh
with
7 additions
and
9 deletions
bin/singlestart.sh
+
7
−
9
View file @
2287a765
...
...
@@ -19,9 +19,12 @@ function reaper()
do
kill
-0
$pid
2>/dev/null
&&
continue
rc
=
wait
$pid
echo
"
${
PIDIDX
[
$pid
]
}
(pid
$pid
) has exited with value
$rc
"
unset
aaa
[
$pid
]
echo
"
***
${
PIDIDX
[
$pid
]
}
(pid
$pid
) has exited with value
$rc
"
unset
PIDIDX
[
$pid
]
done
# kill all - an extra kill doesn't hurt. I hope.
kill
${
!PIDIDX[*]
}
2>/dev/null
||
true
max
=
30
}
if
[
"
$VIRTUALIZATION
"
=
"DOCKER"
]
...
...
@@ -86,13 +89,8 @@ echo "*** Starting monitor.js"
monitor.js
>
${
LOGPIPE
}
2>&1 &
PIDIDX[
$!
]=
"monitor.js"
wait
-n
# if one dies
sleep
2
# give log.sh time to work on the data written, before we kill it.
echo
"*** Some process ended, so will shut down other processes too."
>
${
LOGPIPE
}
kill
${
!PIDIDX[*]
}
2>/dev/null
||
true
# kill all
# wait for them all to end
max
=
30
while
[
-n
"
${
!PIDIDX[*]
}
"
-a
$max
-gt
0
]
max
=
-1
while
[
-n
"
${
!PIDIDX[*]
}
"
-a
$max
-eq
0
]
do
sleep
1
max
=
$((
$max
-
1
))
...
...
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