Open dnivra opened 9 years ago
I have the same issue, the pgid seems to be set correctly when using gvim but not with vim.
With gvim:
g:latexmk_running_pids {'/mnt/data/Documents/notes/oddbits/notes': 3070}
ps -x -o pgid,pid,cmd | fgrep latexmk | cut -f1-8 -d' '
3070 3071 /bin/bash -c
3070 3073 perl /usr/local/texlive/2016/bin/x86_64-linux/latexmk
With vim:
g:latexmk_running_pids {'/mnt/data/Documents/notes/oddbits/notes': 3116}
3111 3117 /bin/bash -c
3111 3121 perl /usr/local/texlive/2016/bin/x86_64-linux/latexmk
The actual pgid seems to be consistently 5 lower than the value stored in g:latexmk_running_pids.
I am having the same issue LatexmkStop failing to terminate. I'm currently using nvim but the issue was present when I was still using vim.
However, the 'how' is different, as
:echo(g:latexmk_running_pids)
{}
and
ps -ao pid,cmd | grep latexmk | cut -d ' ' -f 1
32458
The error definitively lies within LatexmkSetPID. I know nothing of vimscript but I'll attempt to see what I can find.
I'm running vim-gtk 7.4.52 on Ubuntu 14.04.1 with zsh as shell. When I run :LatexmkStop, the latexmk process does not get killed. I check the PIDs for latexmk using g:latexmk_running_pids and ps from the shell and was surprised to find they differ(always by 2 everytime I checked):
:echo(g:latexmk_running_pids) {'/path/to/main': 7826}
$ ps -ao pid,cmd | grep latexmk | cut -d ' ' -f 1 7828
I checked the value of argument passed to function LatexmkSetPID and it says 7826 so I suppose the wrong argument is passed to it. Unfortunately, I could figure out where or how LatexmkSetPID is invoked(I am not familiar with vimscript) and thus couldn't debug further. If I can provide any more information to fix this issue, please do let me know.