Upon starting the preloader, the preloader listens for commands on a Unix domain socket. SpawningKit tells the preloader to spawn a worker process by:
-
Setting up a work directory (see "The preparation and the HandshakePrepare class").
-
Sending a command over the socket. The command is a JSON document on a single line:
{ "command": "spawn", "work_dir": "" }