Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug with eval, proc-subst and pipes



2013-07-19 21:01:59 +0100, Stephane Chazelas:
[...]
> See how fd 13 is closed in the process that execs ls and fd 11
> in its parent shortly before the fork.
[...]

According to gdb, fd 11 is closed by zclose(subsh_close) in
execcmd()

and fd 13 by closedumps() (the missing link to compinit?).

(gdb) p *dumps
$2 = {next = 0x0, dev = 64768, ino = 66808, fd = 13, map = 0x7f0d4e833000, addr = 0x7f0d4e833000, len = 125304, count = 1,
  filename = 0x13ae650 "/usr/share/zsh/functions/Completion/Base.zwc"}

It sounds like those fd are closed too many times. I don't have
much time to investigate any further.

Cheers,
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author