4 ms·
This is my attempt to reinvent wheel from several years ago: https://github.com/zbigg/bashfoo/blob/master/timeout.sh https://github.com/zbigg/bashfoo/blob/maste
by febusravenga 1y ago
This is my attempt to reinvent wheel from several years ago: https://github.com/zbigg/bashfoo/blob/master/timeout.sh 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...