On Sat, Nov 29, 2014 at 08:28:35PM +0000, Balazs Kezes wrote: > On 2014-11-01 15:53 +0000, ajs124 wrote: > > so I hit this bug which frequently prevents me from unmounting drives, > > because tmux has open file descriptors for directories on them. > > Those file descriptors are evidently not needed anymore, because I can > > attach gdb to the tmux process, close them manually and tmux works > > fine afterwards. > > I've also hit this bug recently, it's quite annoying. After a quick scan > of the code, it seems that a directory is open for each client, session > and pane. I think the pane one might be the most annoying and it really > seems the code isn't using it for anything. I've attached a patch for > removing the per pane open cwd. <snip> > - if (fchdir(wp->cwd) != 0) > + if (fchdir(cwd) != 0) > chdir("/");
This is where it is used. -1 is passed into window_pane_spawn by cmd-respawn-*.c. > > if (tcgetattr(STDIN_FILENO, &tio2) != 0) ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users