gnu linux update question
Genes MailLists
lists at sapience.com
Wed Jun 29 13:15:11 UTC 2011
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.
gene
More information about the users
mailing list