# Suggestions on Exception Handling

**URL:** https://discourse.cmake.org/t/suggestions-on-exception-handling/11616
**Category:** Development
**Created:** [September 9, 2024, 2:23am UTC](https://discourse.cmake.org/t/suggestions-on-exception-handling/11616 "2024-09-09T02:23:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zxyssy28](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/258eb7/32.png) [@zxyssy28](https://discourse.cmake.org/u/zxyssy28)
#### Post date: [September 9, 2024, 2:23am UTC](https://discourse.cmake.org/t/suggestions-on-exception-handling/11616/1 "2024-09-09T02:23:01Z")

</div>

Dear sir:  
We are currently working on software code exception handling and detection.We checked the cmake code using our tool and found some issues.  
For example, in cmake-3.30.3/Utilities/cmcurl/lib/mime.c:750 ,function fclose has no exception handling.Similarly, function fork has no exception handling  
in cmake-3.30.3/Source/kwsys/ProcessUNIX.c:2494.There are still some situations like these.  
Hope our findings are meaningful for cmake, looking forward to your reply.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [September 10, 2024, 9:32am UTC](https://discourse.cmake.org/t/suggestions-on-exception-handling/11616/2 "2024-09-10T09:32:04Z")

</div>

To my knowledge, CMake’s own source code doesn’t use or expect exceptions.
