xpp: astribank_is_starting: improve '-v' output
authorOron Peled <oron.peled@xorcom.com>
Tue, 28 Oct 2014 17:28:04 +0000 (13:28 -0400)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 6 Nov 2014 11:29:19 +0000 (13:29 +0200)
Do print a message if no semaphore exists. It means that either there
are no Astribanks, or existing Astribanks were already initialized.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

xpp/astribank_is_starting.c

index 072004f..da565c9 100644 (file)
@@ -125,6 +125,8 @@ static int absem_detected(void)
        if((absem = absem_get(0)) < 0) {
                if(debug)
                        fprintf(stderr, "%s: absem does not exist\n", progname);
+               if(verbose)
+                       printf("No Astribanks are initializing\n");
                return absem;
        }
        if(debug)