Andrew McNabb wrote:

> Vim (vim-enhanced-7.4.0-2.fc19.x86_64 on Fedora) is currently reporting
> 'Found a swap file by the name ".linalg.py.swp"' along with
> 'process ID: 4157 (still running)'.
> 
> However, process 4157 is not a Vim process:
> 
> $ readlink /proc/4157/exe
> /usr/bin/pulseaudio (deleted)
> $
> 
> and '.linalg.py.swp' does not appear in /proc/4157/fd.
> 
> Unfortunately, since Vim thinks that another process is using the swap
> file, it does not give a '(D)elete' option to remove the outdated swap
> file.  It would be nice if either the heuristic for determining whether
> another Vim process would use information in /proc.

Unfortunately Linux recycles process IDs.  It does not happen very often
that Vim makes a mistake with that.  The way you discovered that the
process is not Vim is not a generic solution.  On top of that, it could
be Vim but another process than the one that created the swap file.

Generally, I don't think it's worth solving.  Better avoid that Vim dies
and leave swap files behind.

-- 
hundred-and-one symptoms of being an internet addict:
213. Your kids start referring to you as "that guy in front of the monitor."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui