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