[Xenomai-git] Philippe Gerum : copperplate/registry: shorten sync delay with sysregd
Module: xenomai-3 Branch: master Commit: f444cb7974f37eadba4f696379e4d5139ef16e83 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f444cb7974f37eadba4f696379e4d5139ef16e83 Author: Philippe Gerum Date: Sun Mar 22 16:40:26 2015 +0100 copperplate/registry: shorten sync delay with sysregd --- lib/copperplate/registry.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c index 661562b..cc10464 100644 --- a/lib/copperplate/registry.c +++ b/lib/copperplate/registry.c @@ -667,10 +667,10 @@ static int spawn_daemon(const char *sessdir) break; default: /* -* Make sure we sleep at least one second regardless -* of signal receipts. +* Make sure we sleep at least 200 ms regardless of +* signal receipts. */ - while (__STD(sleep(1)) > 0) ; + while (__STD(usleep(20)) > 0) ; regd_pid = pid; barrier(); sa.sa_handler = sigchld_handler; ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : copperplate/registry: shorten sync delay with sysregd
Module: xenomai-3 Branch: next Commit: f444cb7974f37eadba4f696379e4d5139ef16e83 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f444cb7974f37eadba4f696379e4d5139ef16e83 Author: Philippe Gerum Date: Sun Mar 22 16:40:26 2015 +0100 copperplate/registry: shorten sync delay with sysregd --- lib/copperplate/registry.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c index 661562b..cc10464 100644 --- a/lib/copperplate/registry.c +++ b/lib/copperplate/registry.c @@ -667,10 +667,10 @@ static int spawn_daemon(const char *sessdir) break; default: /* -* Make sure we sleep at least one second regardless -* of signal receipts. +* Make sure we sleep at least 200 ms regardless of +* signal receipts. */ - while (__STD(sleep(1)) > 0) ; + while (__STD(usleep(20)) > 0) ; regd_pid = pid; barrier(); sa.sa_handler = sigchld_handler; ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git