<p dir="ltr">Use ctrl-\ -- ctrl-c only kills a currently running test, not the whole run.</p>
<div class="gmail_quote">On Jul 29, 2015 2:19 AM, "Tapani Pälli" <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello;<br>
<br>
I would like Piglit run to stop when hitting ctrl-c, this is because of sometimes launching it with wrong parameters, I'm lazy and don't like to use kill (like with yum and some others) when I want it to stop.<br>
<br>
I tried to implement this via setting signal handler to catch it but this does not seem to work. I've tried this in run.py (in run) as well as profile.py (in TestProfile class) and I'm getting a feeling that this approach does not work because of using a thread pool (multiprocessing). What would be the correct way to implement this?<br>
<br>
// Tapani<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</blockquote></div>