GithubHelp home page GithubHelp logo

nulltty's People

Contributors

mshroyer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nulltty's Issues

select loop signal handling race condition

The relay main loop should test for the termination flag before calling select, and should use pselect with an appropriate signal mask in order to avoid race conditions.

Dropping 2 bytes out of every 1024 on OpenBSD?

On OpenBSD 5.2 amd64, the "make check" test program hangs indefinitely when attempting to send and verify a message of 1024 bytes. The debug output from the nulltty child process shows it reading and writing exactly 1024 bytes, but the client process only reports reading 1022 from the corresponding file descriptor.

Use explicitly nonblocking IO for select loop

It is possible for read/write to block even after select on some systems, e.g. writing to a pseudoterminal master on OpenBSD. This may require some preprocessor trickery in order to work around OS X's issues specifying O_NONBLOCK to a pty.

pcap logging of relayed data

Provide an option to log relayed data to a pcap file. If this is implemented using libpcap, then a compile-time option should be offered in order to avoid a hard dependency on a third-party library.

Needs "make check" unit test target

Add a simple unit test target to verify that the pseudoterminal relay actually works on this host, by running nulltty as a child process and verifying that data is piped successfully thorough its pty slaves.

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.