Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!whuxle!mit-eddie!genrad!decvax!mcnc!ncsu!uvacs!edison!jso From: jso@edison.UUCP Newsgroups: net.bugs.4bsd Subject: lock hangs on 4.2 Message-ID: <270@edison.UUCP> Date: Tue, 19-Jun-84 16:09:12 EDT Article-I.D.: edison.270 Posted: Tue Jun 19 16:09:12 1984 Date-Received: Fri, 22-Jun-84 07:37:00 EDT Lines: 28 Index: ucb/lock.c 4.2BSD Description: lock hangs on EOF read with 4.2 Repeat-By: lock, and type your eof character Fix: *** src/lock.c Tue Jun 19 16:00:29 1984 --- /usr/src/ucb/lock.c Sat Jul 2 03:51:54 1983 *************** *** 42,49 } s[0] = 0; for (;;) { ! if(fgets(s, sizeof s, stdin) == NULL) ! clearerr(stdin); if (strcmp(s1, s) == 0) break; if (strcmp(s, masterp) == 0) --- 42,48 ----- } s[0] = 0; for (;;) { ! fgets(s, sizeof s, stdin); if (strcmp(s1, s) == 0) break; if (strcmp(s, masterp) == 0)