It is good if you can find some file descriptor that is responsible for your hardware events. If no then launch it in separate thread -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130624/dd37f5b8/attachment.htm>