diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-04 16:45:54 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-04 16:45:54 +0100 |
commit | 5460cc187513c48661d8b6b2bc0251c8900d44a0 (patch) | |
tree | 95d74b84fcebb00be0d53a49afb9fbe79120958a /sysinfo.c | |
parent | c0326277fc2ee0436621904c9f968a3312ae9c10 (diff) | |
download | fastwriter-5460cc187513c48661d8b6b2bc0251c8900d44a0.tar.gz fastwriter-5460cc187513c48661d8b6b2bc0251c8900d44a0.tar.bz2 fastwriter-5460cc187513c48661d8b6b2bc0251c8900d44a0.tar.xz fastwriter-5460cc187513c48661d8b6b2bc0251c8900d44a0.zip |
RPM support
Diffstat (limited to 'sysinfo.c')
-rw-r--r-- | sysinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,13 +26,13 @@ if ((fd = open(filename, O_RDONLY)) == -1) { \ fputs(BAD_OPEN_MESSAGE, stderr); \ fflush(NULL); \ - _exit(102); \ + return -102; \ } \ lseek(fd, 0L, SEEK_SET); \ if ((local_n = read(fd, buf, sizeof buf - 1)) < 0) { \ perror(filename); \ fflush(NULL); \ - _exit(103); \ + return -103; \ } \ buf[local_n] = '\0'; \ close(fd); \ |