DECstation 'waitpid()' broken

Alan's Home for Wayward Notes File. alan at shodha.enet.dec.com
Sat Sep 8 09:29:03 AEST 1990


In article <4054 at rtifs1.UUCP>, mcm at rti.rti.org (Mike Mitchell) writes:
} There is a bug in the implementation of the 'waitpid()' system call on
} the DECstations.  This applies to all DECstation versions of ULTRIX with
} the'waitpid' system call, including ULTRIX 4.0.  The bug is that the
} kernel does not return ANY status information.  You can pass in a 
} 'union status' to the waitpid system call, but the kernel does not
} modify the union.  To prove it, try running the following program:
} 
} [ Example program given. ]
} 
} Notice that the 'wait3()' and 'wait()' system calls work fine, but the
} new 'waitpid()' system call is broken.
} 
} This bug does NOT appear on the VAX version of ULTRIX.  I thought the
} systems were built from common source, and were "bug-for-bug compatible".
} From looking at the proliferation of '#ifdef vax' and '#ifdef mips' in
} the include files, they might be built from the same source files, but
} obviously not the same source code.
} 
} Anyway, the waitpid system call is broken on all versions of ULTRIX on
} DECstations, and should not be used if you are interested in the exit
} status of the children.
}
	If I manage to find the I'll test the program on one or
	more of my V4 systems and will try to submit an internal
	problem report.  You should submit the test problem and
	appropriate as an SPR.  There's at least one copy of the
	form included in with the documentation.

	Yes, I wish you could do this electronically too, but at
	moment that's not the way the "system" works.  If you have
	a support contract you might be able to get the CSC to
	help report it.
	 
} 
} Mike Mitchell	{decvax,seismo,ihnp4,philabs}!mcnc!rti!mcm  mcm at rti.rti.org
} 
-- 
Alan Rollow				alan at nabeth.enet.dec.com



More information about the Comp.unix.ultrix mailing list