Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11702
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Basin Ilya <basinilya@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | trap ... INT when exec <fifo |
| Date | Mon, 19 Oct 2015 12:06:36 +0200 |
| Lines | 32 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.625.1445249208.7904.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1445249208 8501 208.118.235.17 (19 Oct 2015 10:06:48 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oyKQ/U6R3g5yMK5igyhaRCs4x+KTZzvyTurGMGUA/js=; b=QAQgMMAGODSv90XYAyKnk7umNNHa9LPSmnzHV28KoUPRAibI8R7uyu/nUGaF/zmN06 U9hGsQreKOM0Q2mgN6sJ+M86mxUY0J/Beb58i8mmWpCuq3k+TYFdtT0LNaNQgmXzk2LN EA3T2pR0pkKv8uPPrNzAWq2AtWL+p8/w+q/6/WwJPIAGbINI2MBf8Y7zHf2pkyW4SviP 4xaF8U5hrJhFbYr2QdobBCaEjwGGLhyTSFy3ubFMAYJB3ImRFz5EWBAuFjfzdEJTKWcE 6uPQe9NvAJIrVxwqF5TlBiC3ycDFkHd1+hCmuINnWNZW+kUmwlBX5fucSznb4vp3QjTR z1Ig== |
| X-Received | by 10.112.63.67 with SMTP id e3mr14119255lbs.92.1445249199633; Mon, 19 Oct 2015 03:06:39 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
| X-detected-operating-system | by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). |
| X-Received-From | 2a00:1450:4010:c04::234 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11702 |
Show key headers only | View raw
Hi list.
An attempt to open a named pipe created with mkfifo cannot be
interrupted with SIGINT, if trap ... INT installed.
(reading from an opened fifo is interruptible and similar attempt to
open a /dev/tcp socket is interruptible too)
#!/bin/bash
set -e
function errtrap { es=$?; echo "ERROR line $1: Command
exited with status $es.">&2; }; trap 'errtrap $LINENO' ERR
rm -f thefifo
mkfifo thefifo
trap 'echo cleanup' INT
echo "opening thefifo...";
exec 4<thefifo
#exec 4>/dev/tcp/1.2.3.4/445
echo "opened";
echo "reading...";
read <&4
echo done
Bash version 4.3.42, Arch64.
Cannot reproduce in 4.2.46 on Centos7.
Back to gnu.bash.bug | Previous | Next | Find similar
trap ... INT when exec <fifo Basin Ilya <basinilya@gmail.com> - 2015-10-19 12:06 +0200
csiph-web