[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Auto-spawn in libspeechd questions
From: |
Hynek Hanke |
Subject: |
Auto-spawn in libspeechd questions |
Date: |
Tue, 13 Apr 2010 14:00:07 +0200 |
Hello,
the autospawn in libspeechd is a very nice thing. It's implemented
as follows:
g_spawn_sync(NULL, (gchar**)speechd_cmd, NULL, G_SPAWN_SEARCH_PATH |
G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL,
NULL, NULL, &exit_status, &error);
sleep(0.5);
1) Why is it necessary to sleep at all? Should not this be fixed in
src/server/speechd.c?
If so, is one second enough?
2) As per Glibc reference, sleep() takes unsigned int as argument, not
float.
Best regards,
Hynek Hanke
- Auto-spawn in libspeechd questions,
Hynek Hanke <=