From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26360 invoked by alias); 13 Nov 2012 22:10:36 -0000 Received: (qmail 26352 invoked by uid 22791); 13 Nov 2012 22:10:35 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from outbound003.roc2.bluetie.com (HELO outbound003.roc2.bluetie.com) (208.89.132.143) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Nov 2012 22:10:30 +0000 Received: from web002.roc2.bluetie.com ([10.200.2.96]) by outbound003.roc2.bluetie.com with outbound003 id PAAW1k00224HP3e01AAWo2; Tue, 13 Nov 2012 17:10:30 -0500 X-CMAE-OUT-Analysis: v=2.0 cv=Jdk+XD2V c=1 sm=1 a=8gS5e5dDJHsA:10 a=i-wQWBNYtOgA:10 a=IkcTkHD0fZMA:10 a=FmX3VfpdAAAA:8 a=QoHJ8kPOAAAA:8 a=nh66T6sTB8QA:10 a=koufOCmmmBFmLXX0-FcA:9 a=QEXdDO2ut3YA:10 a=41l5LDBFByitqw60Fh41mg==:117 X-CMAE-OUT-Score: 0.00 Received: from web002.roc2.bluetie.com (localhost.localdomain [127.0.0.1]) by web002.roc2.bluetie.com (Postfix) with ESMTP id 187DC3F0172 for ; Tue, 13 Nov 2012 17:10:30 -0500 (EST) Message-ID: <20121113171030.2276@web002.roc2.bluetie.com> X-HTTP-Received: from kenkyee.excite [173.162.132.73] by web002.roc2.bluetie.com (BlueTie WebMail ); Tue, 13 Nov 2012 17:10:30 -0500 Date: Tue, 13 Nov 2012 22:10:00 -0000 Cc: To: ecos-discuss@sourceware.org From: "Ken Yee" Content-transfer-encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] select doesn't work on stdin? X-SW-Source: 2012-11/txt/msg00004.txt.bz2 I'm trying to add a shell console to our system and select() doesn't seem t= o work w/ stdin. I do a select() followed by a read() to get an unbuffered= char. The select is always true and then it goes into the read immediatel= y which ends up in COMM_IF_GETC on the stack dump which then blocks all oth= er threads until it returns (you can hit keys to get it to continue). I'm assuming this is a bug in select(), but has anyone done something like = this and have a workaround? The diag output is also sent to the same port but there is no diag output a= t the time so that shouldn't matter. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss