summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-12-04 02:51:27 -0800
committerTimothee Cour <timothee.cour2@gmail.com>2018-12-04 02:51:27 -0800
commite4850b7f1cac1f2111f2d0fdf976cf4531ef21a2 (patch)
tree8486af71d415dffc9b8ae34eabe447ca7ce5ee51 /lib
parentc0a91970f2f0b363fa8a704a425a457e0b8bc0f5 (diff)
downloadNim-e4850b7f1cac1f2111f2d0fdf976cf4531ef21a2.tar.gz
address comments
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/os.nim2
-rw-r--r--lib/pure/osproc.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 1f5e63528..533d8f350 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -2419,7 +2419,7 @@ proc isHidden*(path: string): bool {.noNimScript.} =
     let fileName = lastPathPart(path)
     result = len(fileName) >= 2 and fileName[0] == '.' and fileName != ".."
 
-proc processID*(): int {.noNimScript.} =
+proc getCurrentProcessId*(): int {.noNimScript.} =
   ## return current process ID. See also ``osproc.processID(p: Process)``.
   when defined(windows):
     proc GetCurrentProcessId(): DWORD {.stdcall, dynlib: "kernel32",
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 77b3d8dcd..b2239b9c5 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -155,7 +155,7 @@ proc running*(p: Process): bool {.rtl, extern: "nosp$1", tags: [].}
   ## Returns true iff the process `p` is still running. Returns immediately.
 
 proc processID*(p: Process): int {.rtl, extern: "nosp$1".} =
-  ## returns `p`'s process ID. See also ``os.processID()``.
+  ## returns `p`'s process ID. See also ``os.getCurrentProcessId()``.
   return p.id
 
 proc waitForExit*(p: Process, timeout: int = -1): int {.rtl,