Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could always fork the process and send SIGKILL to the child after a timeout.


No need to fork; you could install timer using alarm(), setitimer(), or timer_create() and friends.


But how would you clean up the heap and restart the library?


I think you can call kissat_terminate() from the signal handler.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: