Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
e2b4a1a9
Commit
e2b4a1a9
authored
Aug 17, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix script and code
parent
a2a302f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
entrypoint.sh
entrypoint.sh
+3
-4
main.cpp
main.cpp
+1
-1
No files found.
entrypoint.sh
View file @
e2b4a1a9
...
@@ -21,7 +21,6 @@ trap 'kill ${!}; run_stop 15' SIGINT
...
@@ -21,7 +21,6 @@ trap 'kill ${!}; run_stop 15' SIGINT
pid
=
"
$!
"
pid
=
"
$!
"
# wait forever
# wait forever
while
true
wait
"
$pid
"
do
pid
=
0
tail
-f
/dev/null &
wait
${
!
}
run_stop 1
done
main.cpp
View file @
e2b4a1a9
...
@@ -126,7 +126,7 @@ auto get_var(const char* varname, bool required = true) {
...
@@ -126,7 +126,7 @@ auto get_var(const char* varname, bool required = true) {
return
value
;
return
value
;
}
}
auto
get_var_number
(
const
char
*
varname
,
bool
required
=
tru
e
)
{
auto
get_var_number
(
const
char
*
varname
,
bool
required
=
fals
e
)
{
auto
value
=
get_var
(
varname
,
required
);
auto
value
=
get_var
(
varname
,
required
);
if
(
value
==
nullptr
)
return
0
;
if
(
value
==
nullptr
)
return
0
;
return
atoi
(
value
);
return
atoi
(
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment