/proc/[0-9]*/maps where did the (deleted) status go?

From: Jeffrey E. Hundstad (jeffrey_at_hundstad.net)
Date: 11/02/03

  • Next message: Martin J. Bligh: "[Bug 1474] New: NTP needs too much time correction on 2.6.0-test9"
    Date:	Sat, 01 Nov 2003 21:49:03 -0600
    To: linux-kernel@vger.kernel.org
    
    

    Hello,

    In the 2.4.x kernels the /proc/[process id]/maps file contains that
    processes current mappings. This is also true with 2.6.0-test9 but I've
    noticed a difference. It is a feature I'll miss. In the 2.4 kernels
    when a file is mapped but no longer exists (because it has been removed)
    the mapping line would contain the text "(deleted)" after it.

    I've used this feature after I've updated libraries on my system. I ran
    a little scriptlet (see below). It'd tell me which processes were
    running with the old copy of the library. This way I restart those
    processes.

    Is this a feature that can be restored, or perhaps there's a better way
    to do it. Let me know?

    ---- scriptlet library-restart-app follows:
    #!/bin/bash
    for i in `find /proc/ -mindepth 2 -maxdepth 2 -name "maps" | xargs grep
    -a deleted | grep -a -E -v /SYSV[0-9a-z]{8} |grep -a -v /dev/zero | cut
    -d ':' -f1 | cut -d '/' -f3 | sort | uniq | sed -e
    's/\(.*\)/\/proc\/\1\/cmdline/'`;do echo -n "`echo $i| cut -d '/' -f3`
    ";cat $i|tr "\000" "\n" |head -1;done---- ---- scriptlet
    library-restart-app ends

    -- 
    jeffrey hundstad
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Martin J. Bligh: "[Bug 1474] New: NTP needs too much time correction on 2.6.0-test9"

    Relevant Pages

    • Re: /proc/[0-9]*/maps where did the (deleted) status go?
      ... > processes current mappings. ... It is a feature I'll miss. ... > I've used this feature after I've updated libraries on my system. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Suggestions For Final Release WMP11
      ... down button that used to be next to now playing. ... will live in their libraries was the idea but it gives the choice not to. ... Allow the User to remove the top part of the list pane (with the album ... Allow the Video thumbnails (very useful and nice feature by the way!) ...
      (microsoft.public.windowsmedia)
    • Re: Suggestions For Final Release WMP11
      ... I also want the now playing to remember the last files in its playlist ... will live in their libraries was the idea but it gives the choice not to. ... Allow the User to remove the top part of the list pane (with the album ... Allow the Video thumbnails (very useful and nice feature by the way!) ...
      (microsoft.public.windowsmedia)
    • Re: Something like "ping" for windows messages.
      ... The third-party socket libraries I know of come with source (in a couple cases it's an ... But the CMutex layer didn't allow you to change that feature ... And what does a defective design of synchronization primitives relate to the ... solution is to buy a third-party socket libary that is designed to be portable. ...
      (microsoft.public.vc.mfc)
    • Re: Too much builtins (was Re: Pythons simplicity philosophy
      ... then you shouldn't be programming! ... >> and powerful feature with a slew of specific, ... to determine this by searching though the libraries, ... Moving things closer to the core may increase the efficiency of the ...
      (comp.lang.python)