use shared memory to send batches to batchsys (and begin working on accept4)