Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 (Tek) 9/26/83; site tekchips.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!dcdwest!ittvax!decvax!tektronix!tekchips!terryl
From: terryl@tekchips.UUCP ()
Newsgroups: net.bugs.4bsd
Subject: Re: bug in 4.2 ptys stuff.  Weird results when programs are swapped.
Message-ID: <193@tekchips.UUCP>
Date: Fri, 19-Oct-84 17:59:23 EDT
Article-I.D.: tekchips.193
Posted: Fri Oct 19 17:59:23 1984
Date-Received: Mon, 22-Oct-84 06:46:38 EDT
References: <91@azure.UUCP>, <192@tekchips.UUCP>
Lines: 13


     Oops, I found out why the error was ENOTTY after the program swapped;
in the original program, an error is detected and errno is printed. But errno
is printed in something like the second or third printf, so all bets are off
that the value printed is what really caused the error to begin with. If you
save the value of errno and then print the saved value, the error is EIO even
after swapping, which is what is to be expected.



				Terry Laskodi
				     of
				Tektronix