exit(1);
}
close(fd);
fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC);
fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
if (fc < 0) {
perror("cannot open config file");