Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #815132

Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex

From Matthew Vernon <matthewv@chiark.greenend.org.uk>
Newsgroups linux.debian.bugs.dist
Subject Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex
Date 2017-03-24 14:40 +0100
Message-ID <toxBD-2cw-1@gated-at.bofh.it> (permalink)
References <toa2m-28N-23@gated-at.bofh.it> <tocGS-3Wl-9@gated-at.bofh.it> <tocGS-3Wl-7@gated-at.bofh.it> <toeIG-5py-13@gated-at.bofh.it> <tofOp-6a9-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

Revised patch attached [also the out-of-band branch is updated]. As
suggested, the exiting-when-timedout logic is now done in the signal
handler, and I make sure not to call any unsafe functions while that
signal handler is in effect.

The signal-faffing is all conditional on secs (so won't happen if -t
isn't specified).

I don't call fail() when the signal handler is in effect and ALRM might
be unblocked, as that would be UB; one might wish to abort() or exit()
if the relevant calls failed?

Regards,

Matthew

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Matthew Vernon <matthew@debian.org> - 2017-03-23 13:30 +0100
  Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Ian Jackson <ijackson@chiark.greenend.org.uk> - 2017-03-23 16:20 +0100
    Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Ian Jackson <ijackson@chiark.greenend.org.uk> - 2017-03-23 16:20 +0100
      Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Matthew Vernon <matthew@debian.org> - 2017-03-23 18:30 +0100
        Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Ian Jackson <ijackson@chiark.greenend.org.uk> - 2017-03-23 19:40 +0100
          Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Matthew Vernon <matthewv@chiark.greenend.org.uk> - 2017-03-24 14:40 +0100
    Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Ian Jackson <ijackson@chiark.greenend.org.uk> - 2017-03-23 17:00 +0100
    Bug#858555: chiark-utils-bin: [patch] add timeout option to with-lock-ex Matthew Vernon <matthew@debian.org> - 2017-03-23 17:10 +0100

csiph-web