Should we use exit() in C?

前端 未结 7 1164
醉梦人生
醉梦人生 2020-12-02 16:44

There is question about using exit in C++. The answer discusses that it is not good idea mainly because of RAII, e.g., if exit is called somewhere

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-02 16:51

    It is terrible in a big project when any code can exit except for coredump. Trace is very import to maintain a online server.

提交回复
热议问题