Re: [PATCH 3/4] ptrace: reintroduce __ptrace_detach() as a calleeof ptrace_exit()
From: Roland McGrath
Date: Thu Feb 05 2009 - 16:33:17 EST
> > Given its content, this function now better belongs in ptrace.c, I think.
>
> I don't completely agree... This helper imho has nothing to do with
> ptracing, except it does __ptrace_unlink(). But OK, I will move it
> if you prefer.
Obviously where it goes is not a big deal. But I think it's clear that it
has everything to do with ptrace and nothing to do with anything else.
It resolves a situation that can only arise because of ptrace magic.
> In that case we should export task_detached().
Or just recognize that this trivial wrapper around == -1 has little
value two lines away from a place where = -1 is done explicitly.
Really, the "abstraction" is more confusing than not in this function, IMHO.
Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/