bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: process substitution fd lifetime race condition


From: Jason A. Donenfeld
Subject: Re: process substitution fd lifetime race condition
Date: Mon, 20 Apr 2020 15:49:50 -0600

This one will reproduce immediately:

#!/bin/bash
set -e
a="my name is a"
b="my name is b"
sleep() { read -t "$1" -N 1 || true; }
doit() { sleep 0.1; "$@"; }
while true; do
   doit cat <(echo "$a") <(echo "$b")
done



reply via email to

[Prev in Thread] Current Thread [Next in Thread]