More correct handling of insufficient memory

This commit is contained in:
z3APA3A committed 2020-11-02 18:59:13 +03:00
1 parent ee0eac51d6
commit b81089f22e
2 files changed
+135 -25

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ int start_proxy_thread(struct child * chp){
#endif
while(conf.threadinit)usleep(SLEEPTIME);
if(haveerror) {
fprintf(stderr, "Service not started on line: %d\n", linenum);
fprintf(stderr, "Service not started on line: %d%s\n", linenum, haveerror == 2? ": insufficient memory":"");
return(40);
}
return 0;