Re: [RFC] backports: add remove_proc_subtree() backport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 12, 2013 at 10:21:02PM -0700, Luis R. Rodriguez wrote:

> > The difference from your variant is that you use the stack to hold
> > pointers to ancestors of the current victim.  You get to the parent
> > of said victim by discarding a stack frame.  No need, since the
> > victim contained an explicit pointer to its parent...
> 
> Except I thought NULL was passed?

AFAICS, your variant removes _everything_ in the parent.  IOW, instead
of
	rm -rf $ROOT/$RELATIVE_PATH
you do
	test -n $ROOT && rm -rf $ROOT/*
	rm $ROOT/$RELATIVE_PATH
which is not the same thing...
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux