diff --git a/compctl.c b/compctl.c index 52b3bfa9a025aa5f58f32a9183d6fc6b5ece20bc..f1bba58c5eb2977c43788e96cbde968dbfe943b6 100644 --- a/compctl.c +++ b/compctl.c @@ -160,8 +160,12 @@ limit_mem(size_t limit) snprintf(cmd, sizeof(cmd), "limitmem %zu", limit * 1048576); char *line = daemon_chat(cmd); if (line[0] != '1') { - /* TODO: Error message postprocessing. */ + /* TODO: More error message postprocessing. */ fprintf(stderr, "%s\n", *line ? line : "unexpected hangup"); + if (line[0] == '0') { + fprintf(stderr, "Most likely, the computations are already using too much memory.\n" + "Consider stopping some of them first.\n"); + } exit(EXIT_FAILURE); } free(line);