Coder Social home page Coder Social logo

lib_users's People

Contributors

boris-de avatar fkoester avatar klausman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lib_users's Issues

minor: shorten a warning

The following could be shortened for user root :
`
mr-fox ~ # lib_users -s
Warning: Some files could not be read. Note that lib_users has to be run as
root to get a full list of deleted in-use libraries.

mr-fox ~ # whoami
root
`
Happens probably for things like this ?

`mr-fox ~ # lib_users -s
Warning: Some files could not be read. Note that lib_users has to be run as
root to get a full list of deleted in-use libraries.

13159 "afl-fuzz -i /home/torproject/tor-fuzz-corpora//extrainfo -o ./work/20170521-190903_a18b41cc7_extrainfo -m 50000000 -- /home/torproject/tor//src/test/fuzz/fuzz-extrainfo" uses /home/torproject/work/20170521-190903_a18b41cc7_extrainfo/queue/id:000005,orig:04a4394b5a10a3311ebee52d19cd24793860534f3a951a5369905802a293d0d2
`

many warnings about unclosed files/resources with PYTHONWARNINGS=d

When running lib_users with python 3 and warnings enabled (PYTHONWARNINGS=d) it shows a lot of warnings about unclosed files.

Examples:

/usr/lib64/python3.6/site-packages/lib_users_util/common.py:18: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc//32213/cmdline' mode='r' encoding='UTF-8'>
  argv = open("%s/%s/cmdline" % (PROCFSBASE, pid)).read()
/usr/lib/python-exec/python3.6/lib_users:101: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32213/maps' mode='r' encoding='UTF-8'>
  mapsfile = open(map_filename)
/usr/lib/python-exec/python3.6/lib_users:101: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32365/maps' mode='r' encoding='UTF-8'>
  mapsfile = open(map_filename)

At the end there's another one:

/usr/lib/python-exec/python3.6/lib_users:130: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32754/maps' mode='r' encoding='UTF-8'>
  main(sys.argv[1:])

Install/deploy script

I still need to write a setup.py/setup.cfg now that things aren't monolithic anymore.

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.