This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] Fix error checking in utrace_attach_task()
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Atsushi Tsuji <a-tsuji at bk dot jp dot nec dot com>
- Cc: systemtap ML <systemtap at sources dot redhat dot com>
- Date: Thu, 02 Jun 2011 07:24:37 -0400
- Subject: Re: [PATCH] Fix error checking in utrace_attach_task()
- References: <4DE6DB70.30109@bk.jp.nec.com>
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