simon-git: xtruss (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu Sep 17 06:15:21 BST 2020
TL;DR:
a94a153 Clean up handling of the signal pipe.
Repository: https://git.tartarus.org/simon/xtruss.git
On the web: https://git.tartarus.org/?p=simon/xtruss.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2020-09-17 06:15:21
commit a94a15303e64087bd1b1b45f5aa627c8e8807385
web diff https://git.tartarus.org/?p=simon/xtruss.git;a=commitdiff;h=a94a15303e64087bd1b1b45f5aa627c8e8807385;hp=6ff0fc75dcb9098ae13996b552b6f1d5b6411443
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Sep 17 06:11:00 2020 +0100
Clean up handling of the signal pipe.
I wrote into it in the signal handler, but forgot to read the bytes
back out in the poll loop! Also the pipe wasn't set nonblock (without
which _both_ those operations are fraught with danger).
While I'm here, enlarged on the comment saying why the error check in
the signal handler does nothing.
unix/uxxtruss.c | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
More information about the tartarus-commits
mailing list