X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/178220b35f2fd3fbb8a4ac2268277e5fcdd7f889..f5f35081384158156cd62ef93e51c1afce1b9aa9:/noise.c diff --git a/noise.c b/noise.c index 1429626..cb30228 100644 --- a/noise.c +++ b/noise.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: noise.c,v 1.2 1999/11/11 00:59:08 mdw Exp $ + * $Id: noise.c,v 1.4 1999/12/10 23:25:15 mdw Exp $ * * Acquisition of environmental noise (Unix specific) * @@ -30,6 +30,12 @@ /*----- Revision history --------------------------------------------------* * * $Log: noise.c,v $ + * Revision 1.4 1999/12/10 23:25:15 mdw + * Bug fix: remove old spurious fflush. + * + * Revision 1.3 1999/12/10 23:24:11 mdw + * Bug fix: flush buffers before forking. + * * Revision 1.2 1999/11/11 00:59:08 mdw * A bit of reformatting. Initialize the uid and gid correctly. * @@ -254,6 +260,7 @@ int noise_filter(rand_pool *r, int good, const char *c) /* --- Fork a child off --- */ + fflush(0); kid = fork(); if (kid < 0) { close(fd[0]); @@ -263,7 +270,6 @@ int noise_filter(rand_pool *r, int good, const char *c) /* --- Handle the child end of the deal --- */ - fflush(0); if (kid == 0) { int f;