<div class="gmail_quote"><div>Hi,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
#define CHECK_ALLOC(a) if (!(a)) { fprintf(stderr, &quot;%s: %d: Memory allocation failed! exiting at %s!\n&quot;, __FILE__, __LINE__); exit(1); }<br><br></blockquote><div> </div><div>If I may suggest something, I don&#39;t know if it is a good idea to multiply the exit() calls ; wouldn&#39;t it be more relevant to have centralized exit() calls ? (into the main loop for example). For example, in a FastCGI setup, your process is not even supposed to exit() ; that issue reminds me a patch I proposed several weeks ago (issue #3099 [1]). </div>
<div><br></div><div>well, if the process is unable to allocate memory, it would probably not survive a long time before being killed by a OOmKiller call anyway ;</div><div><br></div><div>my 2 cents,</div><div> </div></div>
[1] <a href="http://trac.osgeo.org/mapserver/attachment/ticket/3099/mapserv_fcgi.patch">http://trac.osgeo.org/mapserver/attachment/ticket/3099/mapserv_fcgi.patch</a><br clear="all"><br>-- <br>Pierre<br>