From: | Alfred Perlstein <bright(at)wintelcom(dot)net> |
---|---|
To: | tgl(at)postgresql(dot)org |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql/src/interfaces/libpq (fe-connect.c) |
Date: | 2000-12-18 18:35:23 |
Message-ID: | 20001218103522.A19572@fw.wintelcom.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
* tgl(at)postgresql(dot)org <tgl(at)postgresql(dot)org> [001218 09:34] wrote:
> Date: Monday, December 18, 2000 @ 12:33:42
> Author: tgl
>
> Update of /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq
> from hub.org:/home/projects/pgsql/tmp/cvs-serv46276/src/interfaces/libpq
>
> Modified Files:
> fe-connect.c
>
> ----------------------------- Log Message -----------------------------
>
> Ensure that 'errno' is saved and restored by all signal handlers that
> might change it. Experimentation shows that the signal handler call
> mechanism does not save/restore errno for you, at least not on Linux
> or HPUX, so this is definitely a real risk.
I'm not sure why you're doing this, if someone calls PQrequestCancel,
they shouldn't expect it to preserve errno.
Afaik you're not responcible for saving/restoring errno on all
entries to a userland library, users should know to check beforehand.
--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."
From | Date | Subject | |
---|---|---|---|
Next Message | momjian | 2000-12-18 18:45:04 | pgsql/src/backend/port/beos (sem.c) |
Previous Message | tgl | 2000-12-18 17:33:42 | pgsql/src/interfaces/libpq (fe-connect.c) |