Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
78 stars 6 forks source link

Fixed bug where returning non-zero was only treated as a crash on Windows #95

Closed Dawoodoz closed 9 months ago

Dawoodoz commented 9 months ago

Now programs using Posix to call other programs should behave more like on MS-Windows, by comparing the return value with zero. It was tested with hard crashes using intentional segmentation faults before, but Posix apparently has more than one way to indicate a crash, so process_getStatus missed the weaker crashes where the called Linux program simply returned a non-zero value.

This should make it easier to detect when an external program called directly from your program failed to complete a given task.