Skip site navigation (1) Skip section navigation (2)

EINTR error in SunOS

From: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: EINTR error in SunOS
Date: 2005-12-30 05:08:39
Message-ID: Pine.GSO.4.58.0512292353050.26813@dvp.cs (view raw or flat)
Thread:
Lists: pgsql-hackers
I encountered an error today (can't repeat) on SunOS 5.8:

  --test that we read consecutive LFs properly
  CREATE TEMP TABLE testnl (a int, b text, c int);
+ ERROR:  could not open relation 1663/16384/37713: Interrupted system call

The reason I guess is the open() call is interrupted by a signal (what
signal BTW?). This error may be specific to SunOS/Solaris, but POSIX does
say that an EINTR is possible on open(), close(), read(), write() and also
the fopen() family:

	http://www.opengroup.org/onlinepubs/007908799/xsh/open.html

We have patched read()/write(), shall we do so to open()/close() and also
fopen() family? Patching files other than fd.c seems unnecessary for two
reasons: (1) they are not frequently exercised; (2) they don't have the
basic errno-check code there.

Regards,
Qingqing

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-12-30 05:33:59
Subject: Re: EINTR error in SunOS
Previous:From: Bruce MomjianDate: 2005-12-30 03:25:14
Subject: Re: Does VACUUM reorder tables on clustered indices

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group