From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24873 invoked by alias); 28 Oct 2009 16:06:38 -0000 Received: (qmail 24865 invoked by uid 22791); 28 Oct 2009 16:06:38 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 16:06:32 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N3B2Z-0004Hs-0n for ecos-discuss@sources.redhat.com; Wed, 28 Oct 2009 17:06:27 +0100 Received: from mn-69-34-67-62.sta.embarqhsd.net ([69.34.67.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2009 17:06:27 +0100 Received: from grant.b.edwards by mn-69-34-67-62.sta.embarqhsd.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2009 17:06:27 +0100 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Wed, 28 Oct 2009 16:06:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes 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] What causes interrupted network system calls? X-SW-Source: 2009-10/txt/msg00171.txt.bz2 Somebody working on a network-intensive eCos application reported to me that in situations where there are frequent connection open/close operations, the various socket-related system calls (send, connect, etc.) are frequently returning -EINTR. This application was recently ported from the old NetBSD network stack to the FreeBSD stack, and the -EINTR return values were never seen with the old stack. Is the frequent -EINTR return expected behavior for the new stack? Is there a way to get the stack to restart system calls, or is application code required to check for -EINTR and retry system calls? -- Grant Edwards grante Yow! I'm continually AMAZED at at th'breathtaking effects visi.com of WIND EROSION!! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss