mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Moved mch_get_pid and renamed it to os_get_pid
This commit is contained in:

committed by
Thiago de Arruda

parent
f545afaed0
commit
a8013f2bb1
@@ -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
|
||||
|
Reference in New Issue
Block a user