WRITER
if (read(p[WRITER], buffer, count) < count) {
if (read(p[WRITER], &c, 1) != 1) { /* check that crypt is working on */