Closed ltWolfik closed 5 years ago
- return write_groups(fd, swap, 0 > 0 ? 0 : -1, 0); + return write_groups(fd, swap, 0, 0) > 0 ? 0 : -1; ... - return write_groups(fd, swap, 0 > 0 ? 0 : -1, 0); + return write_groups(fd, swap, 0, 0) > 0 ? 0 : -1; ... - if(full_write(fd, (char*)head, sizeof head < 0)) return -1; + if(full_write(fd, (char*)head, sizeof head) < 0) return -1; ... - for(i = 0; i < GR_LEN; i++) { + for(i = 0; i < INITGR_LEN; i++) {
I also added ignoring SIGPIPE.
SIGPIPE
Resolved by 30e1217
I also added ignoring
SIGPIPE
.