From f449d57ba7d97ded6e00cb45edd5a827a5fa8870 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 25 Jul 2013 14:10:22 -0500 Subject: Fix a few tsak glitches on hotplug --- tsak/main.cpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/tsak/main.cpp b/tsak/main.cpp index 8fa36f4ab..e49c05147 100644 --- a/tsak/main.cpp +++ b/tsak/main.cpp @@ -334,7 +334,7 @@ bool setupPipe() bool setupLockingPipe(bool writepid) { - /* Create the FIFOs if they do not exist */ + /* Create the FIFOs as they may not exist */ umask(0); mkdir(FIFO_DIR,0644); @@ -385,17 +385,6 @@ void restart_tsak() } } - // Wait for process termination - sleep(1); - - // Release all exclusive keyboard locks - for (int current_keyboard=0;current_keyboard