From: hackbard Date: Thu, 28 Jun 2007 06:58:40 +0000 (+0000) Subject: corrected random fd close X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=f60d78f7f3243120dc284f9c089849e610f9ec0f;p=physik%2Fposic.git corrected random fd close --- diff --git a/random/random.c b/random/random.c index ddbd7b5..df77980 100644 --- a/random/random.c +++ b/random/random.c @@ -55,7 +55,7 @@ int rand_close(t_random *random) { if(random->buffer) free(random->buffer); if(random->fd) close(random->fd); - if(random->logfd) close(random->logfd); + if(random->logfd>2) close(random->logfd); // could be stdo/e return 0; }