]> Some of my projects - libferris.git/commitdiff
Fix open call
authorAPTX <marek321@gmail.com>
Fri, 6 Apr 2012 15:38:35 +0000 (11:38 -0400)
committerAPTX <marek321@gmail.com>
Fri, 6 Apr 2012 15:38:35 +0000 (11:38 -0400)
apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp

index d59635041c216d59c39dcda3ca8b2a78936c12dd..c177e5018f8427ed2d835542c77d795b05f01eee 100644 (file)
@@ -77,7 +77,7 @@ void writePID( pid_t pid = 0 )
     stringstream ss;
     ss << pid;
     string path = TargetDir + "/pid";
-    int fd = open( path.c_str(), O_WRONLY |  O_CREAT | O_TRUNC );
+    int fd = open( path.c_str(), O_WRONLY |  O_CREAT | O_TRUNC, 0777 );
     write( fd, ss.str().c_str(), ss.str().length() );
     close( fd );