> Hi everyone,
> I wote some code to manage a data aquisition device in the labs.
> It runs for a while (say 24 hrs, gathering data every 6 secs [x 50 data
> points]) then it crashes, crashes bad (segmentation fault) /dev/ttyS0
> input overflow ... does anyone know what is causing this??
I b
I don't know about your first problem...
fflush() will flush your stream to the system buffer cache. sync() will cause
the buffer cache to be posted to disk. Unless linux crashes, the sync call
should not be needed.
jim
--
From: C.J.LAWSON[SMTP:[EMAIL PROTECTED]
Sent: Thursday, Fe
I can't help you with the device problem. However, if you do a:
man fflush
You will get a manual page of the fflush C function for the particular
UNIX or UNIX-like system you are using, presumably and hopefully Debian
Linux since you posted to this Debian mailing list. In general, all
a
3 matches
Mail list logo