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

This is my attempt to reinvent wheel from several years ago: https://github.com/zbigg/bashfoo/blob/master/timeout.sh

This is very complex, because if you.write lots of functions that call functions, you really just want to run something that inherits while env from your process, that's why there is control and sleep process and naive race to decide which finished first...

That's probably reason I ignored built-in timeout...



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

Search: