Re: gnu linux update question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2011-06-29 at 09:15 -0400, Genes MailLists wrote:
> On 06/29/2011 06:01 AM, Bryn M. Reeves wrote:
> > print "pid: %s" % pid # add this line
> 
>   Great idea:
> 
>   ./needs-restarting
> pid: 1
> Traceback (most recent call last):
>   File "./needs-restarting", line 138, in <module>
>     sys.exit(main(sys.argv))
>   File "./needs-restarting", line 118, in main
>     for fn in get_open_files(pid):
>   File "./needs-restarting", line 85, in get_open_files
>     for line in maps.readlines():
> IOError: [Errno 13] Permission denied
> 
> 
> 
>   From this we see:
> 
> 
> $ ls -l /proc/1/smaps
> 0 -r--r--r--. 1 root root 0 Jun 28 13:25 /proc/1/smaps
> 
> $ cat /proc/1/smaps
> cat: /proc/1/smaps: Permission denied
> 
> So that is the source of the problem - tho it probably should not give up.

But the mode bits allow reading, and on my system "cat /proc/1/smaps"
succeeds (though it's empty). I don't think those files have extended
attributes so that wouldn't be it.

Curiouser and curiouser, as Alice said.

poc

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux