[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Fedora Legacy Test Update Notification: openssl095a
- From: Chip Turner <cturner redhat com>
- To: Discussion of the Fedora Legacy Project <fedora-legacy-list redhat com>
- Subject: Re: Fedora Legacy Test Update Notification: openssl095a
- Date: 23 Mar 2004 18:03:07 -0500
Michal Jaegermann <michal harddata com> writes:
> On Tue, Mar 23, 2004 at 04:05:18PM -0500, Chip Turner wrote:
> >
> > As an exercise I once wrote this script to detect any running
> > processes that had mmap'd any files that were removed.
>
> Ouch! This was a long exercise. For quite a while I am using
> something like that:
>
> #!/bin/bash
> grep -a deleted /proc/*/maps | sed -e '/SYSV0/d' -e 's,/maps:.*,,' | \
> sort -u | while read p ; do
> echo $p ; ps uww --no-headers $(echo $p | sed 's,.*/,,')
> done
>
> Another possibility to identify names would be to do simply
> "cat $p/cmdline && echo" but this eats white space - which is often
> not nice.
Yep there are plenty of ways to do it simpler. The original idea was
to integrate it into the applet to alert people 'hey, you should
restart ssh' and such, but never went far enough with it to be user
friendly enough to explain that kind of thing.
Chip
--
Chip Turner cturner redhat com
Red Hat, Inc.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]