this seems to be a good solution for linux

Signed-off-by: Cristian Stoica <crististm@gmail.com>