[Vm-dev] Unix socket plugin patch for systemd

David T. Lewis lewis at mail.msen.com
Thu May 2 16:49:36 UTC 2013


On Thu, May 02, 2013 at 05:22:07PM +0200, Max Leske wrote:
> 
> We've created a patch for the unix socket plugin that allows for socket activation via systemd.
> 
> This is how it works:
> 1. tell systemd to link a socket to the vm (e.g. 8080)
> 2. send a request to the socket
> 3. systemd will launch the vm and hold the request until the image is connected to the port
> 4. (here's where the patch comes in) connect to the socket in the image (e.g. by starting WAKom - WAKom startOn: 8080)
> 
> The patch is necessary because the primitive would fail when connecting to the socket (the plugin thinks that the socket is already in use).
> 
> So here's my question: who is responsible for the plugin or would like to integrate the patch?

Hi Max,

You've come to the right place. I'm guessing that your patches involve both the Smalltalk
(slang) and the platform C code. If so, it may be easiest if you just post the patches
to the list for starters, and then we can sort out what needs to be done by whom. Please
also let us know which code base you are working with (trunk interpreter VM, Cog, other?).

For more information on contributing to the Unix VM, see Ian's documentation here:

  http://squeakvm.org/unix/download.html#caveats
  http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/doc/README.Contributing?view=markup

There are currently several branches of VM development that will be impacted by
a change to SocketPlugin, so we'll make sure they all get updated appropriately.

Thanks!

Dave



More information about the Vm-dev mailing list