Commit e2b4a1a9 authored by nanahira's avatar nanahira

fix script and code

parent a2a302f2
......@@ -21,7 +21,6 @@ trap 'kill ${!}; run_stop 15' SIGINT
pid="$!"
# wait forever
while true
do
tail -f /dev/null & wait ${!}
done
wait "$pid"
pid=0
run_stop 1
......@@ -126,7 +126,7 @@ auto get_var(const char* varname, bool required = true) {
return value;
}
auto get_var_number(const char* varname, bool required = true) {
auto get_var_number(const char* varname, bool required = false) {
auto value = get_var(varname, required);
if (value == nullptr) return 0;
return atoi(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment