This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix error checking in utrace_attach_task()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]