Return value for exec() is actually -1 when there is an error.