about summary refs log tree commit diff stats
path: root/src/types/dispatcher.nim
blob: cd668a15e84315079e5692bb73e793debc610455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import posix

import ips/forkserver

type Dispatcher* = ref object
  forkserver*: ForkServer
  mainproc*: Pid

proc newDispatcher*(): Dispatcher =
  new(result)
  result.forkserver = newForkServer()
  result.mainproc = getpid()