more tweaks
[tridge/hacksm.git] / common.c
index 096c5c5..e8a66a4 100644 (file)
--- a/common.c
+++ b/common.c
@@ -126,3 +126,14 @@ int hsm_store_unlink(dev_t device, ino_t inode)
        free(fname);
        return ret;
 }
+
+void msleep(int t)
+{
+       struct timeval tval;  
+
+       tval.tv_sec = 0;
+       tval.tv_usec = t;
+       select(0,NULL,NULL, NULL, &tval);
+}
+