Giter VIP home page Giter VIP logo

detachtty's People

Contributors

cosmos72 avatar huetsch avatar listout avatar matoro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

detachtty's Issues

attachtty --eval option [2004, debian bug #282640]

Reported by Marco Baringer in 2004, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282640


hi,

i found myself wanting to use a script to send some lisp code to a
dettachtty'd lisp server. unfortunetly the first thing i could think
of 'echo (foo) | attachtty /socket' doesn't work since the stdin
socket gets closed. i don't think attachtty should deal with that
since when attachtty is used interactily that should be an error
(though doing something other than looping forever spitting out
error messages migth be nice). so, i figured adding an --eval
argument was the smartest thing to do.

the attach attachtty.c accepts a '--eval CODE' argument. when passed
CODE is sent directly to the socket and the connection is closed,
when the --eval argument isn't passed it runs like before.

i don't think my coding style is the best so if you want feel free
to edit/refactor/maul as much as you like.

Would be nice if detachtty did not unconditionally override umask [2005, debian bug #329948]

Reported by Adam C. Emerson in 2005, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329948


Currently, detachtty unconditionally sets the umask to 077 before
opening the socket. This bothers me somewhat because I would like to
make the socket accessible to a group rather than just a single user.
(Even an option telling the program that I know it thinks it's a bad
idea but I'd really like to would be nice.)

Removing the umask fixing can be accomplished easily by removing lines
80, 128, and 160 of detachtty.c

Thank you very much.

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.