The return value of ret is checked to be > 0 or -1. What happens if it would be 0 or lower than -1?