Fortuned's Pipe- Making the Pipe static void handle_commands(const char* device_file) { int rc; int fd = -1; char errstring[256]; int counter = 0; assert(device_file); /* open the FIFO */ log("making the FIFO at '%s'", device_file); rc = mkfifo(device_file, OPEN_COMMON); if (rc == -1) fatal("failed to mkfifo. error '%s'", strerror(errno)); /* set our behaviour in regards to signals */ signal(SIGINT, sighandler); signal(SIGKILL, sighandler); signal(SIGTERM, sighandler);