summaryrefslogtreecommitdiffstats
path: root/sysinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo.c')
-rw-r--r--sysinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysinfo.c b/sysinfo.c
index 52354e7..cde53d0 100644
--- a/sysinfo.c
+++ b/sysinfo.c
@@ -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); \