Last small fix, -1 instead of SIG_ERR