Packages

Gives the Erlang Runtime System access to POSIX features of the build environment (currently, errno and sigaction.)

Current section

Files

Jump to
posix lib posix sup.ex
Raw

lib/posix/sup.ex

defmodule System.POSIX.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, name: __MODULE__)
end
def init(_) do
children = [
worker(System.POSIX.Signal.EventListener, []),
worker(System.POSIX.Signal.EventManager, [])
]
supervise(children, strategy: :one_for_one)
end
end