Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.bugs.4bsd Subject: Re: crypt can get confused when in pipes Message-ID: <4989@utzoo.UUCP> Date: Tue, 29-Jan-85 19:52:02 EST Article-I.D.: utzoo.4989 Posted: Tue Jan 29 19:52:02 1985 Date-Received: Tue, 29-Jan-85 19:52:02 EST References: <316@daemon.UUCP> Organization: U of Toronto Zoology Lines: 12 > I'm not sure why crypt inherited another process in the first place...I > think something else may smell a bit here, too, especially when one > considers the contrivance one must go through to make this bug apparent. > [Running crypt at the end of at least a 3-stage pipeline.] A well-known fact of life, which some programs don't pay quite enough attention to, is that the earlier processes in complex sh pipelines are the children of the later ones. Processes doing a wait() should *always* check to make sure that the child they end up with is the right one. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry