diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-03 15:26:35 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 03:26:55 +0200 |
commit | 497b2f091165679f85baac76a99a65a80b40ab68 (patch) | |
tree | aaf7ecac747fb8fd4dcbf2e3420d00c2b334cfa5 /kdm/kfrontend/kgreeter.cpp | |
parent | 2482dd05e5b7806b4bad69ac8e07dbc4dd6714e0 (diff) | |
download | tdebase-497b2f091165679f85baac76a99a65a80b40ab68.tar.gz tdebase-497b2f091165679f85baac76a99a65a80b40ab68.zip |
Fix high tdm CPU usage when the SAK is enabled
This closes Bug 690
(cherry picked from commit 5486d8e2a8ed86dc1fa421a46b4e3cd8b796e1ea)
Diffstat (limited to 'kdm/kfrontend/kgreeter.cpp')
-rw-r--r-- | kdm/kfrontend/kgreeter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kdm/kfrontend/kgreeter.cpp b/kdm/kfrontend/kgreeter.cpp index 07e9e3f70..649def4e6 100644 --- a/kdm/kfrontend/kgreeter.cpp +++ b/kdm/kfrontend/kgreeter.cpp @@ -83,6 +83,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include <sys/time.h> #include <termios.h> #include <signal.h> +#include <libgen.h> #include <X11/Xlib.h> @@ -250,6 +251,13 @@ void KGreeter::handleInputPipe(void) { umask(0); struct stat buffer; int status; + char *fifo_parent_dir = strdup(FIFO_DIR); + dirname(fifo_parent_dir); + status = stat(fifo_parent_dir, &buffer); + if (status != 0) { + mkdir(fifo_parent_dir, 0644); + } + free(fifo_parent_dir); status = stat(FIFO_DIR, &buffer); if (status == 0) { int file_mode = ((buffer.st_mode & S_IRWXU) >> 6) * 100; |