IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2025, 5:02:37 PM (13 months ago)
Author:
eugene
Message:

fix order of fflush and fclose

Location:
trunk/Ohana/src/opihi
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/write_vectors.c

    r42389 r42901  
    183183      fprintf (f, "\n");
    184184    }
     185    fflush (f);
    185186    fclose (f);
    186187    free (vec);
    187     fflush (f);
    188188    return (TRUE);
    189189  }
     
    207207      free (fmtlist);
    208208      free (format);
     209      fflush (f);
    209210      fclose (f);
    210       fflush (f);
    211211      return (FALSE);
    212212    }
     
    277277    fprintf (f, "\n");
    278278  }
     279  fflush (f);
    279280  fclose (f);
    280   fflush (f);
    281281
    282282  free (fmttype);
  • trunk/Ohana/src/opihi/dvo/avperiodogram.c

    r42821 r42901  
    310310  ClearInterrupt (old_sigaction);
    311311
     312  fflush (foutput);
    312313  fclose (foutput);
    313   fflush (foutput);
    314314
    315315  // free measure stack stuff
  • trunk/Ohana/src/opihi/dvo/avperiodomatch.c

    r42821 r42901  
    338338  ClearInterrupt (old_sigaction);
    339339
     340  fflush (foutput);
    340341  fclose (foutput);
    341   fflush (foutput);
    342342
    343343  FREE (idxValue);
  • trunk/Ohana/src/opihi/lib.data/SplineOps.c

    r41341 r42901  
    204204  gfits_free_table (&ftable);
    205205
     206  fflush (f);
    206207  fclose (f);
    207   fflush (f);
    208208  return (TRUE);
    209209}
  • trunk/Ohana/src/opihi/lib.shell/VectorIO.c

    r42389 r42901  
    374374  }
    375375
     376  fflush (f);
    376377  fclose (f);
    377   fflush (f);
    378378  return (TRUE);
    379379
     
    387387  }
    388388
     389  fflush (f);
    389390  fclose (f);
    390   fflush (f);
    391391  return (FALSE);
    392392}
  • trunk/Ohana/src/opihi/pcontrol/PclientCommand.c

    r37070 r42901  
    5050  // INITTIME;
    5151
    52   /* avoid blocking very long on read, test every 100 usec, up to 0.1 sec */
     52  /* avoid blocking very long on read, test every 100 usec, up to 10 msec */
    5353  request.tv_sec = 0;
    5454  request.tv_nsec = 100000;
Note: See TracChangeset for help on using the changeset viewer.