Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Created March 22, 2017 11:02
Show Gist options
  • Save FooBarWidget/19837b8e54bc2d6076688b80725d0982 to your computer and use it in GitHub Desktop.
Save FooBarWidget/19837b8e54bc2d6076688b80725d0982 to your computer and use it in GitHub Desktop.

Upon starting the preloader, the preloader listens for commands on a Unix domain socket. SpawningKit tells the preloader to spawn a worker process by:

  1. Setting up a work directory (see "The preparation and the HandshakePrepare class").

  2. Sending a command over the socket. The command is a JSON document on a single line:

    { "command": "spawn", "work_dir": "" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment