I've seen close return an error MANY times.  It all depends on the
underlying file system.  Seriously, you should always check the return
value.

-derek

[EMAIL PROTECTED] writes:

> 
> It's been rumoured that Jeremy Collins said:
> > Index: src/engine/FileIO.c
> > ===================================================================
> > RCS file: /home/cvs/cvsroot/xacc/src/engine/FileIO.c,v
> > retrieving revision 1.49
> > diff -u -r1.49 FileIO.c
> > --- FileIO.c    1999/08/04 05:03:26     1.49
> > +++ FileIO.c    1999/11/10 17:14:18
> > @@ -1362,7 +1362,14 @@
> >    
> >    err = xaccWriteAccountGroup (fd, grp);
> >  
> > -  close(fd);
> > +  if(0 != err)
> > +    {
> > +      /* Just close it and return the earlier error. */
> > +      close(fd);
> > +      return err;
> > +    }
> > +
> > +  err = close(fd);
> >  
> >    return err;
> >    }
> 
> Seems like a no-op to me. I've never seen close return an error.
> 
> --linas
> 
> --
> Gnucash Developer's List 
> To unsubscribe send empty email to: [EMAIL PROTECTED]
> 
> 

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/      PP-ASEL      N1NWH
       [EMAIL PROTECTED]                        PGP key available

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to