Moved mch_get_pid and renamed it to os_get_pid

This commit is contained in:
Stefan Hoffmann
2014-04-04 19:53:43 +02:00
committed by Thiago de Arruda
parent f545afaed0
commit a8013f2bb1
9 changed files with 33 additions and 13 deletions

View File

@@ -5730,7 +5730,7 @@ vim_tempname (
* unlikely that it already exists it will be faster,
* otherwise it doesn't matter. The use of mkdir() avoids any
* security problems because of the predictable number. */
nr = (mch_get_pid() + (long)time(NULL)) % 1000000L;
nr = (os_get_pid() + (long)time(NULL)) % 1000000L;
itmplen = STRLEN(itmp);
/* Try up to 10000 different values until we find a name that