From 9300d91a3957dc922d33d62f4ff3e77f4ae075b3 Mon Sep 17 00:00:00 2001 From: APTX Date: Fri, 6 Apr 2012 11:38:35 -0400 Subject: [PATCH] Fix open call --- apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp b/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp index d596350..c177e50 100644 --- a/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp +++ b/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp @@ -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 ); -- 2.52.0