]> git.lizzy.rs Git - plan9front.git/commit
rc: fix Xpipefd unbalancing the redir stack
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 8 Sep 2018 12:49:00 +0000 (14:49 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 8 Sep 2018 12:49:00 +0000 (14:49 +0200)
commit2839760066e578e449ebc8b3d71297b9f79a8c99
tree95cae2887eaa016a1d9e2205420342e881bbddb0
parent217e8a06198cf6681fb0c38c26f34d96ae4302f6
rc: fix Xpipefd unbalancing the redir stack

Xpipefd wants the pipe descriptor to be closed in turfredir(), so
it pushes the redirection, but this breaks Xpopredir after normal
redirection. so we shuffle the Xpipefd redir to the bottom of the
stack.
sys/src/cmd/rc/exec.c
sys/src/cmd/rc/fns.h
sys/src/cmd/rc/havefork.c