mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
tidying/hardening
This commit is contained in:
parent
68f0619c4e
commit
ff6492e19e
2
Makefile
2
Makefile
@ -151,7 +151,7 @@ meta-clean:
|
||||
# few things such as localconfig.json).
|
||||
clean:
|
||||
$(CHECK_CLEAN_SAFETY)
|
||||
rm -rf build # Handle this part ourself; can confuse git.
|
||||
rm -rf build # Kill build ourself; may confuse git if contains other repos.
|
||||
git clean -dfx $(ROOT_CLEAN_IGNORES)
|
||||
|
||||
# Show what clean would delete without actually deleting it.
|
||||
|
||||
@ -165,11 +165,14 @@ int get_running_server_port_(const struct Context_* ctx,
|
||||
|
||||
cJSON* state_dict = cJSON_Parse(buf);
|
||||
if (!state_dict) {
|
||||
// An un-parseable state file is not a recoverable error; go down hard.
|
||||
fprintf(stderr,
|
||||
"Error: pcommandbatch client %s_%d (pid %d): failed to parse state "
|
||||
"value.\n",
|
||||
ctx->instance_prefix, ctx->instance_num, ctx->pid);
|
||||
return -1;
|
||||
"Fatal Error: pcommandbatch client %s_%d (pid %d):"
|
||||
" failed to parse state file value of size %zu.\n",
|
||||
ctx->instance_prefix, ctx->instance_num, ctx->pid, amt);
|
||||
fflush(stderr);
|
||||
abort();
|
||||
// return -1;
|
||||
}
|
||||
|
||||
// If results included output, print it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user