From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: psql use of 'volatile' |
Date: | 2000-06-29 16:37:21 |
Message-ID: | 200006291637.MAA06306@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
[ Charset ISO-8859-1 unsupported, converting... ]
> On Thu, 29 Jun 2000, Bruce Momjian wrote:
>
> > Can someone explain why 'volatile' is used in psql/mainloop.c?
>
> If you remove them then you get tons of warnings about variables possibly
> getting clobbered. The reason is the longjmp business that's going on when
> you press Control-C. (The fact that the variables would get clobbered is
> not critical since they're reinitialized immediately anyway, but who am I
> to argue with the compiler.)
Agreed.
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Alfred Perlstein | 2000-06-29 16:51:18 | Re: Use of volatile |
Previous Message | Peter Eisentraut | 2000-06-29 16:36:48 | Re: psql use of 'volatile' |