Closes the message file when we're done with it.

-- 
Randall Hopper (mailto:[EMAIL PROTECTED])
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711
--- src/exec/libdx/ORIG/message.c       Tue Feb  1 14:27:51 2000
+++ src/exec/libdx/message.c    Wed Aug  9 07:53:55 2000
@@ -94,8 +94,10 @@
     if (read(fd, state->buf, size) < size) {
        DXWarning("message file %s could not be read", name);
        state->translate = 0;
+       close(fd);
        return OK;
     }
+    close(fd);
     state->buf[size] = '\0';
     s = state->buf;
     while (*s!='#' && *s)

Reply via email to