speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Reload modules after transfer to background mode.


From: Boris Dušek
Subject: [PATCH] Reload modules after transfer to background mode.
Date: Sat, 2 Apr 2011 11:57:34 +0200

This makes the process tree view display all module processes
as children of the main speech-dispatcher process.
---
 src/server/speechd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/server/speechd.c b/src/server/speechd.c
index 4740be0..80c2977 100644
--- a/src/server/speechd.c
+++ b/src/server/speechd.c
@@ -1191,6 +1191,8 @@ int main(int argc, char *argv[])
                unlink(SpeechdOptions.pid_file);
                if (create_pid_file() == -1)
                        return -1;
+               /* Reload modules with new parent process */
+               speechd_load_configuration(0);
        }
 
        MSG(4, "Creating new thread for speak()");
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]