[meta-intel] [PATCH] utils: Fix wait in windows non-interactive shell
Malik Olivier Boussejra
me at boussejra.com
Mon Oct 31 11:03:59 PDT 2016
Hello everyone,
I submit a simple patch to fix an issue when the "flashall.bat" script
is run inside a non-interactive shell (like for example if I spawn the
bash script from another program).
Indeed, the timeout command on Windows can only be used inside an
interactive shell. As a result, the flashall.bat batch script would fail
without flashing the edison from a non-interactive cmd.
The fix is very simple: replace timeout by waitfor. waitfor works even
in non-interactive shell and has the same behaviour as timeout in the
current use case.
You can see the patch applied on my github:
https://github.com/malikolivier/meta-intel-edison
Thanks for your time.
Best,
Malik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-utils-Fix-wait-in-windows-non-interactive-shell.patch
Type: text/x-patch
Size: 1065 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/meta-intel/attachments/20161101/849bf688/attachment.bin>
More information about the meta-intel
mailing list