Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site astrovax.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!astrovax!wls From: wls@astrovax.UUCP (William L. Sebok) Newsgroups: net.sources Subject: Re: mdbm library source Message-ID: <418@astrovax.UUCP> Date: Mon, 13-Aug-84 22:29:37 EDT Article-I.D.: astrovax.418 Posted: Mon Aug 13 22:29:37 1984 Date-Received: Tue, 14-Aug-84 05:00:44 EDT References: <8104@umcp-cs.UUCP> Organization: Princeton Univ. Astrophysics Lines: 14 I believe there is one bug here that the dbm routines also have. In line 33 of checkblock.c, line 59 of delitem.c, and lines 38 and 248 of store.c there should be an: fflush(stdout); between the printf() and the abort(). Otherwise the output never appears. In the 4.2 BSD implementation of stdio, output to stdout is line buffered by default if the device is a terminal, block buffered otherwise (I do not know the current behavior of System V). If the output had been to stderr instead of stdio at least it would have been okay if the device was a terminal. -- Bill Sebok Princeton University, Astrophysics {allegra,akgua,burl,cbosgd,decvax,ihnp4,noao,princeton,vax135}!astrovax!wls