summary refs log tree commit diff stats
path: root/compiler/service.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/service.nim')
-rw-r--r--compiler/service.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/service.nim b/compiler/service.nim
index 95fb11022..f6c2720a7 100644
--- a/compiler/service.nim
+++ b/compiler/service.nim
@@ -64,8 +64,8 @@ proc serve*(action: proc (){.nimcall.}) =
   var inp = "".TaintedString
   server.listen()
   while true:
-    var client = InvalidSocket
-    accept(server, client)
-    discard client.recvLine(inp)
+    accept(server, stdoutSocket)
+    discard stdoutSocket.recvLine(inp)
     processCmdLine(passCmd2, inp.string)
     action()
+    stdoutSocket.send("\c\L")