Re: [v2 PATCH] redir: Clear saved redirections in subshell

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

 



On 17/01/2020 15:28, Herbert Xu wrote:
On Fri, Jan 17, 2020 at 05:57:55PM +0800, Herbert Xu wrote:

Something like this should fix the redir problem.  I'll address the
other issue in a subsequent patch.

Here is a new version that adds a forkreset hook to mkinit so
that we do the clearing even when we enter a subshell without
forking.

Yup, that's something I've had for a while for the same reason. I called it envreset since it's not only called after forking, but it's the same thing.

The clearing of redirlist is also what I ended up doing, except I did free the memory by adding a drop parameter to unwindredir and passing that on to popredir. That should not affect the user-visible behaviour.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux