Skip to content

Commit

Permalink
Use fopen(a, e) for O_CLOEXEC
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Sep 10, 2016
1 parent e4dad65 commit ff2d20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ void *files_mapSharedMem(size_t sz, int *fd, const char *dir)

bool files_readPidFromFile(const char *fileName, pid_t * pidPtr)
{
FILE *fPID = fopen(fileName, "rb");
FILE *fPID = fopen(fileName, "rbe");
if (fPID == NULL) {
PLOG_W("Couldn't open '%s' - R/O mode", fileName);
return false;
Expand Down

0 comments on commit ff2d20c

Please sign in to comment.