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, February 26, 1998 9:02 AM
To:     debian-user@lists.debian.org
Cc:     The recipient's address is unknown.
Subject:        Help!! --/dev/ttyS0 input overflow error --

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 would also like to find out what the equivalent of fflush (); is
for the unix filesystem

        Thanks and I really look forward to hearing from you 
        
        Regards
                
                Jonatha (who is in a fix in the lab)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to