Closed toonn closed 3 years ago
Egh. Ok. We may be stuck here for a little bit, but I'll bump it up my to-do list.
In this case, it's breaking on some no-arg uses of exec to manipulate FDs, which I obviously didn't have in mind.
Unfortunately, the fix is tied up with some abstract/architectural decisions I haven't settled on a solution to. I'm glad you hit it, though--it's a case I hadn't considered, so it might help make the solution more obvious.
Sorry to leave you blocked--I'll update you when I have something.
Np, glad to be of service. I'll use the traditional methods for now.
I'm ~roughly ready (sans bugfixes, review, and perhaps bikeshedding) to land the work mentioned here.
I'm not sure if you're set up to give this a quick test, but if so it would be good to see if this works for your case. You should be able to override/overlay with the same source in https://github.com/abathur/resholve/commit/c4140c28a36d6f9e9b05c9dae03ede2fe2bd57be#diff-9c0c6e6c25883f63765fedcfbedb4bf4c12784db049728c5c7c0496d269c21aa
I also have a nascent nixpkgs commit in https://github.com/abathur/nixpkgs/commit/14b00b18ae3cdc8b18bc49061a1ba8ad46b09630 if that's easier (though I'm not super-current with latest nixpkgs.)
Fair warning that I'm still likely to be force-pushing this work some. The latest code will generally be available at https://github.com/abathur/resholve/tree/subexecers even if I've blown away a specific commit.
I have yet to initiate a PR for updating this in nixpkgs yet, but the release of 0.6.0 should fix this issue if you happen to overlay it in.
Got the following traceback, command included.