~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9c3df6c
)
Bug fix: flush buffers before forking.
author
mdw
<mdw>
Fri, 10 Dec 1999 23:24:11 +0000
(23:24 +0000)
committer
mdw
<mdw>
Fri, 10 Dec 1999 23:24:11 +0000
(23:24 +0000)
noise.c
patch
|
blob
|
blame
|
history
diff --git
a/noise.c
b/noise.c
index
1429626
..
a78a790
100644
(file)
--- a/
noise.c
+++ b/
noise.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: noise.c,v 1.
2 1999/11/11 00:59:08
mdw Exp $
+ * $Id: noise.c,v 1.
3 1999/12/10 23:24:11
mdw Exp $
*
* Acquisition of environmental noise (Unix specific)
*
*
* Acquisition of environmental noise (Unix specific)
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: noise.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: noise.c,v $
+ * 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.
*
* Revision 1.2 1999/11/11 00:59:08 mdw
* A bit of reformatting. Initialize the uid and gid correctly.
*
@@
-254,6
+257,7
@@
int noise_filter(rand_pool *r, int good, const char *c)
/* --- Fork a child off --- */
/* --- Fork a child off --- */
+ fflush(0);
kid = fork();
if (kid < 0) {
close(fd[0]);
kid = fork();
if (kid < 0) {
close(fd[0]);