Error reporting patch by Jarda Benkovsky
This commit is contained in:
@@ -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