Pids

Tanner Andrews tanner at ki4pv.UUCP
Sat May 3 04:18:37 AEST 1986


] 5) Any reason not to use unsigned pids?...

Unsigned pid would really give fits to the old but well-loved test
	if  ((pid = fork()) < 0)
		die(horrible_death);

In fact, with unsigned being used, you'd have a very hard time
distinguishing between
	(failing fork() == -1)
and
	(working fork == 0xFFFF)	/* may be 0xFFFFFFFF on vaxen */

-- 
<std dsclm, copies upon request>	   Tanner Andrews



More information about the Comp.unix.wizards mailing list