FDIO: don't set fd's to 0, -1 is better since its safe for abuse.