• Peter Zijlstra's avatar
    perf_counter tools: Propagate signals properly · f7b7c26e
    Peter Zijlstra authored
    Currently report and stat catch SIGINT (and others) without altering
    their exit state. This means that things like:
    
       while :; do perf stat ./foo ; done
    
    Loops become hard-to-interrupt, because bash never sees perf terminate
    due to interruption. Fix this.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    f7b7c26e
builtin-record.c 12.6 KB