Module: xenomai-abe
Branch: experimental
Commit: a4c6c149fed2ab957777981feed79909569a97f8
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=a4c6c149fed2ab957777981feed79909569a97f8

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sat Jun 19 00:45:16 2010 +0200

analogy: add an arbitrary sleep in cmd_write before closing the device

---

 src/utils/analogy/cmd_write.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/utils/analogy/cmd_write.c b/src/utils/analogy/cmd_write.c
index 5ce9218..b65b8f6 100644
--- a/src/utils/analogy/cmd_write.c
+++ b/src/utils/analogy/cmd_write.c
@@ -22,6 +22,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <sys/mman.h>
 #include <errno.h>
 #include <getopt.h>
@@ -397,6 +398,8 @@ out_main:
        if (dsc.sbdata != NULL)
                free(dsc.sbdata);
 
+       sleep(1);
+
        /* Release the file descriptor */
        a4l_close(&dsc);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to