Menu

#181 soapcpp2: check fclose status and wrap fopen for better error messages

Patch
closed
None
5
2020-03-13
2020-03-08
No

Noticed that the status code of fclose wasn't checked, so for example running out of disk space wouldn't be detected till the output was used. Wrapped it up in a efclose() function and call execerror on failure.

I have also wrapped up the fopen(something, "w") calls, but for the reason that I want to increase the buffer size on windows. Side-effect here is better error messages should open fail and reduced runtime on windows when outputting MBs (90-100MB in the VirtualBox case).

Cheers,
knut.

1 Attachments

Related

Patches: #183

Discussion

  • Robert van Engelen

    It's a good idea to add a check for fclose() so I'll make some adjustments to generate a fatal error when writing and closing fails.

     
  • Robert van Engelen

    • status: open --> pending
     
  • Robert van Engelen

    • status: pending --> closed
     
  • Robert van Engelen

    The soapcpp2 tool is updated to version 2.8.99.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.