Error reporting patch by Jarda Benkovsky
This commit is contained in:
1 parent
540f3fbcad
commit
2ac2b16c49
1 file changed
+4
@@ -114,6 +114,10 @@ mem_init ()
|
|||||||
#ifndef SOLARIS
|
#ifndef SOLARIS
|
||||||
if (!meminfo_fd) {
|
if (!meminfo_fd) {
|
||||||
meminfo_fd = open ("/proc/meminfo", O_RDONLY);
|
meminfo_fd = open ("/proc/meminfo", O_RDONLY);
|
||||||
|
if (meminfo_fd < 0) {
|
||||||
|
perror ("Can't open /proc/meminfo");
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user