mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 08:45:43 +08:00
silencing pcommandbatch compile warning
This commit is contained in:
parent
1ce60b594e
commit
25454a2580
@ -227,14 +227,14 @@ int establish_connection_(const struct Context_* ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In non-debug-mode, route to a log file.
|
// In non-debug-mode, route to a log file.
|
||||||
char endbuf[512];
|
char endbuf[1024];
|
||||||
if (ctx->debug) {
|
if (ctx->debug) {
|
||||||
snprintf(endbuf, sizeof(endbuf), " &");
|
snprintf(endbuf, sizeof(endbuf), " &");
|
||||||
} else {
|
} else {
|
||||||
snprintf(endbuf, sizeof(endbuf), " >>%s/worker_log_%s_%d 2>&1 &",
|
snprintf(endbuf, sizeof(endbuf), " >>%s/worker_log_%s_%d 2>&1 &",
|
||||||
ctx->state_dir_path, ctx->instance_prefix, ctx->instance_num);
|
ctx->state_dir_path, ctx->instance_prefix, ctx->instance_num);
|
||||||
}
|
}
|
||||||
char buf[512];
|
char buf[2048];
|
||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
"%s batchserver --timeout %d --project-dir %s"
|
"%s batchserver --timeout %d --project-dir %s"
|
||||||
" --instance %s_%d %s",
|
" --instance %s_%d %s",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user