#!/bin/bash

set -x

./sleepMingw $* &

enTrapSIGINT () { echo "killing process $pid"; { kill $pid && exit 0; }; exit 1; }

pid=$!
trap enTrapSIGINT 2
x=$$; (exec kill -INT $x) || exit 1
wait

