Coder Social home page Coder Social logo

Comments (1)

alexxroche avatar alexxroche commented on July 4, 2024

I downloaded the latest release and patched staticDHCPd with

    dev_null_r = open('/dev/null', 'r')
    dev_null_a = open('/dev/null', 'a+')
    dev_null_0 = open('/dev/null', 'a+', 0)
    os.dup2(dev_null_r.fileno(), sys.stdin.fileno())
    os.dup2(dev_null_a.fileno(), sys.stdout.fileno())
    os.dup2(dev_null_0.fileno(), sys.stderr.fileno())
    -os.dup2(open('/dev/null', 'r').fileno(), sys.stdin.fileno())
    -os.dup2(open('/dev/null', 'a+').fileno(), sys.stdout.fileno())
    -os.dup2(open('/dev/null', 'a+', 0).fileno(), sys.stderr.fileno())

But version 2 seems to have already patched this with

    devnull = os.open('/dev/null', os.O_RDWR)
    os.dup2(devnull, sys.stdin.fileno())
    os.dup2(devnull, sys.stdout.fileno())
    os.dup2(devnull, sys.stderr.fileno())

So this issue would be fixed by having a new release candidate? (Its been 7 years since the last release, so maybe its time?)

from staticdhcpd.

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.