[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Tue, 24 Jul 2001 21:03:43 +0200 (CEST)
>From owner-rtl Tue Jul 24 12:53:42 2001
Received: from ultra.ele.utoronto.ca (root@ultra.ele.toronto.edu [128.100.15.14])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f6OIrf701159
for <rtl@rtlinux.org>; Tue, 24 Jul 2001 12:53:41 -0600
Received: from labpc7.ele.utoronto.ca (IDENT:root@labpc7.ele.toronto.edu [128.100.15.178])
by ultra.ele.utoronto.ca (8.9.1/8.9.1) with SMTP id OAA24764
for <rtl@rtlinux.org>; Tue, 24 Jul 2001 14:52:51 -0400 (EDT)
From: "alex @UofT" <alex@power.ele.utoronto.ca>
To: rtl@rtlinux.org
Subject: [rtl] crash while reading fifos
Date: Mon, 23 Jul 2001 14:46:40 -0400
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <01072314573000.00643@labpc7.ele.utoronto.ca>
Content-Transfer-Encoding: 8bit
hi.
I ran here into serious problems. My system crashs every time I read from the
FIFOS while doing - lets say - cat a textfile.
Without "touching" the system while reading from the fifos it usually crahs
after a while (coupple of minutes).
the rtlinux task itself is stable.
If someone has a hint, I would very very appreciate this.
In my opinion the linux rtfofo readprogramm seems to be pretty o.k. - quite
nothing is done.
alexander
the linux fifo read file is like this:
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
int i;
unsigned short value[8];
unsigned int counter;
int main()
{
int rtf10;
if ((rtf10 = open("/dev/rtf10", O_RDONLY)) < 0) {
printf("Error opening /dev/rtf10\n");
exit(1);
}
while (1) {
for (i=0;i<8;i++) read(rtf10,&value[i],2);
read(rtf10,&counter,4)
}
return 0;
}
----- End of forwarded message from owner-rtl@fsmlabs.com -----