summary refs log tree commit diff stats
path: root/lib/pure/osproc.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-01-26 01:38:45 +0200
committerZahary Karadjov <zahary@gmail.com>2014-01-26 01:38:45 +0200
commit5d712e0d3f9f5b8e486720c8bedd749656b527d8 (patch)
treec021fc94967717fb6fa56d50271655c99875ae94 /lib/pure/osproc.nim
parent5a6030a16bf74ee7de92117c5b2d7310b8b36d28 (diff)
parentad74332a9221b17db84de6eca55f19b67a3ec81f (diff)
downloadNim-5d712e0d3f9f5b8e486720c8bedd749656b527d8.tar.gz
Merge branch 'devel' of https://www.github.com/Araq/Nimrod into devel
Diffstat (limited to 'lib/pure/osproc.nim')
-rw-r--r--lib/pure/osproc.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 6c43dc2d9..676707abb 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -660,8 +660,8 @@ elif not defined(useNimRtl):
 
     else:
     
-      Pid = fork()
-      if Pid < 0: osError(osLastError())
+      pid = fork()
+      if pid < 0: osError(osLastError())
       if pid == 0:
         ## child process:
 
@@ -685,14 +685,14 @@ elif not defined(useNimRtl):
           if env == nil:
             discard execv(command, a)
           else:
-            discard execve(command, a, ToCStringArray(env))
+            discard execve(command, a, toCStringArray(env))
         else:
           var x = addCmdArgs(command, args)
           var a = toCStringArray(["sh", "-c"], [x])
           if env == nil:
             discard execv("/bin/sh", a)
           else:
-            discard execve("/bin/sh", a, ToCStringArray(env))
+            discard execve("/bin/sh", a, toCStringArray(env))
         # too risky to raise an exception here:
         quit("execve call failed: " & $strerror(errno))
     # Parent process. Copy process information.