When haproxy is compiled without USE_SHM_OPEN, does not try to dump the
startup-logs in the "reload" output, because it won't show anything
interesting.
} else if (strcmp(env, "1") == 0) {
chunk_printf(&trash, "Success=1\n");
}
-
+#ifdef USE_SHM_OPEN
if (startup_logs && b_data(&startup_logs->buf) > 1)
chunk_appendf(&trash, "--\n");
ring_attach_cli(startup_logs, appctx, 0);
return 0;
}
+#else
+ if (applet_putchk(appctx, &trash) == -1)
+ return 0;
+#endif
return 1;
}