echo job on windows

50 views
Skip to first unread message

mattn

unread,
Feb 9, 2016, 4:58:27 AM2/9/16
to vim_dev
Hi.


echo job_start(...) doesn't show process id on windows.

diff --git a/src/eval.c b/src/eval.c
index 33f95ef..f5fb5f8 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -21606,6 +21606,10 @@ get_tv_string_buf_chk(typval_T *varp, char_u *buf)
# ifdef UNIX
vim_snprintf((char *)buf, NUMBUFLEN,
"process %ld %s", (long)job->jv_pid, status);
+# elif defined(WIN32)
+ vim_snprintf((char *)buf, NUMBUFLEN,
+ "process %ld %s", (long)job->jf_pi.dwProcessId,
+ status);
# else
/* TODO */
vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status);

Bram Moolenaar

unread,
Feb 9, 2016, 2:39:47 PM2/9/16
to mattn, vim_dev

Yasuhiro Matsumoto wrote:

> echo job_start(...) doesn't show process id on windows.

Thanks!

--
hundred-and-one symptoms of being an internet addict:
197. Your desk collapses under the weight of your computer peripherals.

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages