IPCFS

IPCFS is the user space inter process communication file system.

Status

This is a "proof of concept". I use it, but its just a hack to see if the concept makes any sense.

Dependencies

Install

    cabal install hfuse split
    hg clone http://bitbucket.org/aep/ipcfs/
    cd ipcfs 
    make
    sudo cp ipcfs /usr/sbin

start at boot

  /usr/sbin/ipcfs /var/ipc/ -o direct_io -o default_permissions -o allow_other
  mkdir /var/ipc/system
  mkdir -p /var/ipc/user/myuser
  chown myuser /var/ipc/user/myuser
  chmod o-rx /var/ipc/user/myuser

use

  #create a channel
  touch /var/ipc/user/myuser/test

  #block forever, until some other process writes to it
  cat /var/ipc/user/myuser/test

  #can do that in another term again
  cat /var/ipc/user/myuser/test

  #write stuff to both cats
  echo "Hello World" > /var/ipc/user/myuser/test