This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: commitinfo script to check policy, issue warnings (and/or abort commit)
On May 18, 2001, Loren James Rittle <rittle@latour.rsch.comm.mot.com> wrote:
> Informing the user they have 30 seconds to abort and then sleeping for
> 30 seconds does not work! If the user aborts, the abort is captured
> by the local client and then 30 seconds after the procedure started,
> the server proceeds to commit the change.
:-(
Not even if you attempt to write a relatively long message back to the
client after the 30 seconds wait? I'd hope that, if writing this
message fails, the client has disconnected, so the script could tell
the server to not commit the message.
This assumes the script is writing directly to the client, or at least
to some buffer that will stop accepting data as soon as it notices the
other end is gone.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me