summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-11-12 11:28:40 +0100
committerDave Davenport <qball@gmpclient.org>2016-11-12 11:28:40 +0100
commit27cef3c9ae83a488c70c8483ee6bef5e104a3a16 (patch)
tree84a291eab3cc84b2d6e4cdb75ae532db191eaa28 /source/helper.c
parent335a01689d7984d1b887ead51f41d5eb40b2a3fc (diff)
Fix #497: Create cache dir if not exists.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c
index bf21e0a6..e099457d 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -425,14 +425,14 @@ int create_pid_file ( const char *pidfile )
int fd = g_open ( pidfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR );
if ( fd < 0 ) {
- fprintf ( stderr, "Failed to create pid file." );
+ fprintf ( stderr, "Failed to create pid file.\n" );
return -1;
}
// Set it to close the File Descriptor on exit.
int flags = fcntl ( fd, F_GETFD, NULL );
flags = flags | FD_CLOEXEC;
if ( fcntl ( fd, F_SETFD, flags, NULL ) < 0 ) {
- fprintf ( stderr, "Failed to set CLOEXEC on pidfile." );
+ fprintf ( stderr, "Failed to set CLOEXEC on pidfile.\n" );
remove_pid_file ( fd );
return -1;
}