mjansson / foundation_lib

Cross-platform public domain foundation library in C providing basic support data types and functions to write applications and games in a platform-independent fashion.
The Unlicense
301 stars 23 forks source link

Support for killing process #11

Closed emoon closed 9 years ago

emoon commented 9 years ago

Hi,

Sorry to bug you with more feature requests but something that would be very useful is something like

FOUNDATION_API int process_kill( process_t* proc );

I'm not sure all platforms you support can use this but for desktop platforms this is quite useful. I have some cases where I spawn a program, run a bunch of tests (connecting with sockets) and the easiest way to shut it down is just to kill the process.

mjansson commented 9 years ago

First implementation in feature/process-kill branch, not written tests or tested all platforms yet.

mjansson commented 9 years ago

Test added and merged into develop branch in 8f9acf7

emoon commented 9 years ago

Sweet! Thanks :)

JoeCreoterra commented 9 years ago

I agree this is great to have right in the lib, thanks!