Coder Social home page Coder Social logo

Comments (7)

saleyn avatar saleyn commented on July 17, 2024

Quite frankly, the pty support was suggested and contributed by another user, and while it works on Linux, I haven't tested it on Mac, as I don't have access to MacOS X. Likely pty is handled a bit differently there, and you can troubleshoot the issue by checking if this https://github.com/saleyn/erlexec/blob/master/c_src/exec.cpp#L1134 function call is supposed to work on Mac.

from erlexec.

dsabanin avatar dsabanin commented on July 17, 2024

Sorry for the misunderstanding, Erlang is running inside VirtualBox VM that runs Ubuntu, so it fails on Linux.

Thanks for getting back to me! I'll try to update this issue if I figure it out.

from erlexec.

dsabanin avatar dsabanin commented on July 17, 2024

After some experiments, it turned out that the PTY mode works perfectly if the code doesn't attempt to disable ECHO mode.

In my case, I do not care about ECHO mode, so I'm not sure if it's correct to deny PTY mode completely in case if disabling ECHO fails. Certainly not in my case. Would it make sense to just ignore the failure to disable ECHO mode and continue setting up the PTY?

Thanks!

from erlexec.

saleyn avatar saleyn commented on July 17, 2024

What is the OS error that you are getting when there's a failure to disable echo?

from erlexec.

dsabanin avatar dsabanin commented on July 17, 2024

"Inappropriate ioctl for device"

from erlexec.

saleyn avatar saleyn commented on July 17, 2024

I think it should be safe to ignore the error. What the error means is that the standard input is not a terminal, and it can't echo there anyway. See:
http://unix.stackexchange.com/questions/82658/bash-script-error-stty-standard-input-inappropriate-ioctl-for-device

I'll commit the fix.

from erlexec.

dsabanin avatar dsabanin commented on July 17, 2024

Thank you!

from erlexec.

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.