Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mod-C does not work on environments without procfs #7

Closed
hakujin opened this issue Jul 13, 2015 · 1 comment
Closed

Mod-C does not work on environments without procfs #7

hakujin opened this issue Jul 13, 2015 · 1 comment

Comments

@hakujin
Copy link

hakujin commented Jul 13, 2015

The proc filesystem is not implemented across all POSIX platforms (e.g. OS X, OpenBSD, deprecated in FreeBSD, etc.) and dvtm uses a procfs lookup for static char *getcwd_by_pid(Client *c) to implement the Mod-C command.

lsof is messy but portable. May be worth exploring as an alternative.

@martanne
Copy link
Owner

I'm willing to accept patches if they are simple and self contained (as is the current code for Linux). I have no interest in adding lots of #ifdefs and system specific dependencies though.

@hakujin hakujin closed this as completed Jan 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants