kill processes with SIGINT and not SIGKILL
add use_ret_code param

Setting use_ret_code to true makes the main process return the ret
code of the selected child process.
allow config file to be read from stdin