ruby-timeout-interrupt/README.md

18 lines
619 B
Markdown
Raw Normal View History

2013-03-06 15:09:39 +01:00
timeout-interrupt
=================
2013-03-06 11:58:38 +01:00
2013-03-06 15:09:39 +01:00
Works like ruby's timeout, but interrupts every call, also syscalls, which blocks the hole ruby-process.
2013-03-06 11:58:38 +01:00
2013-03-06 15:09:39 +01:00
It uses POSIX's alarm and traps ALRM-signals.
2013-03-06 11:58:38 +01:00
2013-03-06 15:09:39 +01:00
Known limitations bacause of alarm and ALRM are, that you can not use alarm or trap ALRM.
Do not forget, syscall can have allocated memory.
If you interrupt a call, which can not free his allocations, you will have a memory leak.
So, use it only, if your process did not live any longer or if you call something, which never allocate mem
2013-03-06 11:58:38 +01:00
2013-03-06 15:09:39 +01:00
Copyleft
=========
2013-03-06 11:58:38 +01:00
2013-03-06 15:09:39 +01:00
Copyright (c) 2013 Denis Knauf. See LICENSE.txt for further details.