[PATCH] Fix error checking in utrace_attach_task()

Frank Ch. Eigler fche@redhat.com
Thu Jun 2 11:24:00 GMT 2011


Atsushi Tsuji <a-tsuji@bk.jp.nec.com> writes:

> utrace_attach_task() returns not ENOENT but ESRCH in case of
> UTRACE_ATTACH_CREATE if an error occurs. So this patch fixes
> error checking to correctly ignore processes in "mortally
> wounded" state.
> [...]

If I understand correctly, the difference is that we don't print the
"utrace_attach returned error ..." error message, and thus don't end
up calling _stp_exit() to shut the script down.  (Perhaps task_finder
is too trigger-happy to call _stp_error, when _stp_softerror could be
better.)

- FChE



More information about the Systemtap mailing list