Commit 2280e62d authored by Marc G. Fournier's avatar Marc G. Fournier

Make the error message output by AllocateFile() if failes to

open Nulldev a *bit* more user friendly...or, at least, admin
friendly...have it print strerror(errno) as well
parent 069b71d7
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Id: fd.c,v 1.15 1997/02/14 04:16:26 momjian Exp $ * $Id: fd.c,v 1.16 1997/02/20 22:54:18 scrappy Exp $
* *
* NOTES: * NOTES:
* *
...@@ -847,8 +847,8 @@ AllocateFile() ...@@ -847,8 +847,8 @@ AllocateFile()
FreeFd = 0; FreeFd = 0;
AssertLruRoom(); AssertLruRoom();
} else { } else {
elog(WARN,"Open: %s in %s line %d\n", Nulldev, elog(WARN,"Open: %s in %s line %d, %s\n", Nulldev,
__FILE__, __LINE__); __FILE__, __LINE__, strerror(errno));
} }
} }
close(fd); close(fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment