On Wed, 29 Aug 2018 11:39:32 -0400
David Niklas <address@hidden> wrote:
> On Thu, 16 Aug 2018 10:52:32 +0200
> "R. Diez" <address@hidden> wrote:
> > Hi there:
<snip>
> > If OpenOCD dies during initialisation, reading from the pipe will
> > fail, and the Bash script will exit.
>
> export H="$!";
> sleep 15s;
> kill $H;
> wait $H;
>
> if [ $H -ne 0 ]; then exit; fi
<snip>
Oops! That should read:
if [ $? -ne 0 ]; then exit; fi
Sincerely,
David