Git Product home page Git Product logo

Comments (7)

finestructure avatar finestructure commented on May 18, 2024 1

So I’ve just had time to look at this again and vapor docker enter is working with tty support in the 06-20 branch which was where I’d left off the conversion to 3.0: https://github.com/qutheory/vapor-toolbox/tree/swift-06-20

I should have opened a PR for that branch at the time, I think it got lost in the transition that I’d been migrating and testing this stuff. It was all a bit wild with the 3.0 changes causing trouble left, right, and centre.

So the answer is to merge those changes in my 06-20 branch into master. It’s using posix_spawnp to replace all system commands.

from toolbox.

finestructure avatar finestructure commented on May 18, 2024

I need to check but didn’t the initial adaptation for 3.0-preview1 I pushed use posix_spawn?

from toolbox.

finestructure avatar finestructure commented on May 18, 2024

Actually, it seems like it’s something I tried but didn’t add it. This was adapted from SwiftPM, here’s a gist to it for reference: https://gist.github.com/feinstruktur/eff754257652cec27aba63e7c556dc70

from toolbox.

finestructure avatar finestructure commented on May 18, 2024

I haven’t had time to clean this up but there’s now a working version of a posix_spawnp based drop in replacement for system in console: https://github.com/vapor/console/blob/posix_spawnp/Sources/POSIX/popen2.swift

See vapor/console-kit@c870420 (in main.swift) for an example.

from toolbox.

finestructure avatar finestructure commented on May 18, 2024

Swell, posix_spawn_file_actions_addinherit_np is not available on Linux apparently :/ Looking for a workaround.

from toolbox.

finestructure avatar finestructure commented on May 18, 2024

This should do the trick: vapor/console-kit@028186a

from toolbox.

BrettRToomey avatar BrettRToomey commented on May 18, 2024

Closing this due to inactivity. Please feel free to reopen.

from toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.