Update os/log.c
this cleans up comments Co-authored-by: Vedraj Gawas <gawasvedraj@gmail.com>
This commit is contained in:
parent
4967b25b95
commit
9550c28e6e
2
os/log.c
2
os/log.c
|
@ -178,7 +178,7 @@ LogFilePrep(const char *fname, const char *backup, const char *idstring)
|
|||
if (asprintf(&logFileName, fname, idstring) == -1)
|
||||
FatalError("Cannot allocate space for the log file name\n");
|
||||
|
||||
int fd = open(logFileName, O_RDWR | O_NOFOLLOW);Add commentMore actions
|
||||
int fd = open(logFileName, O_RDWR | O_NOFOLLOW);
|
||||
if (fd != -1) {
|
||||
struct stat buf;
|
||||
if (fstat(fd, &buf) == 0 && S_ISREG(buf.st_mode)) {
|
||||
|
|
Loading…
Reference in New Issue