compiles on OSX better

This commit is contained in:
Axel Kittenberger 2015-10-14 12:57:49 +02:00
parent e9ffda07f0
commit 1f95925304
1 changed files with 3 additions and 1 deletions

View File

@ -664,7 +664,9 @@ write_pidfile(
const char *pidfile
)
{
pidfile_fd = open( pidfile, O_CREAT | O_RDWR | O_CLOEXEC, 0644 );
pidfile_fd = open( pidfile, O_CREAT | O_RDWR, 0644 );
fcntl( pidfile_fd, F_SETFD, FD_CLOEXEC );
char buf[ 127 ];