Boost C++ Libraries: Ticket #5185: Shared library libboost_graph_parallel calls exit() or _exit() https://svn.boost.org/trac10/ticket/5185 <p> During a package review at Fedora (<a class="ext-link" href="https://bugzilla.redhat.com/show_bug.cgi?id=673839"><span class="icon">​</span>https://bugzilla.redhat.com/show_bug.cgi?id=673839</a>) our rpmlint warned, that the shared library libboost_graph_parallel calls exit() or _exit(): </p> <pre class="wiki">boost-graph-mpich2.i686: W: shared-lib-calls-exit /usr/lib/mpich2/lib/libboost_graph_parallel.so.1.46.0 exit@GLIBC_2.0 This library package calls exit() or _exit(), probably in a non-fork() context. Doing so from a library is strongly discouraged - when a library function calls exit(), it prevents the calling program from handling the error, reporting it to the user, closing files properly, and cleaning up any state that the program has. It is preferred for the library to return an actual error code and let the calling program decide how to handle the situation. boost-graph-mpich2.i686: W: shared-lib-calls-exit /usr/lib/mpich2/lib/libboost_graph_parallel-mt.so.1.46.0 exit@GLIBC_2.0 This library package calls exit() or _exit(), probably in a non-fork() context. Doing so from a library is strongly discouraged - when a library function calls exit(), it prevents the calling program from handling the error, reporting it to the user, closing files properly, and cleaning up any state that the program has. It is preferred for the library to return an actual error code and let the calling program decide how to handle the situation. </pre><p> May somebody more knowledged than me please investigate here, whether this exit()/_exit() is acceptable or whether it should be changed/rewritten (and if yes, do so)? Thank you very much. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5185 Trac 1.4.3 mcepl@… Sun, 13 Feb 2011 23:18:18 GMT cc set https://svn.boost.org/trac10/ticket/5185#comment:1 https://svn.boost.org/trac10/ticket/5185#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">mcepl@…</span> added </li> </ul> Ticket Jeremiah Willcock Fri, 29 Jul 2011 01:44:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5185#comment:2 https://svn.boost.org/trac10/ticket/5185#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73425" title="Removed calls to exit(); fixes #5185">[73425]</a>) Removed calls to exit(); fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5185" title="#5185: Bugs: Shared library libboost_graph_parallel calls exit() or _exit() (closed: fixed)">#5185</a> </p> Ticket