Deactivate locking file for hostemulation mode
authorHenning Rogge <hrogge@googlemail.com>
Thu, 3 Feb 2011 17:40:08 +0000 (18:40 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Thu, 3 Feb 2011 17:40:08 +0000 (18:40 +0100)
src/main.c

index 7db8256..3ecc799 100644 (file)
@@ -526,7 +526,7 @@ int main(int argc, char *argv[]) {
    */
   for (i=5; i>=0; i--) {
     OLSR_PRINTF(3, "Trying to get olsrd lock...\n");
-    if (olsr_create_lock_file(i > 0) == 0) {
+    if (!olsr_cnf->host_emul && olsr_create_lock_file(i > 0) == 0) {
       /* lock sucessfully created */
       break;
     }