Commit 549159ac authored by Timothy Stack's avatar Timothy Stack
Browse files

Fixes for mezzanine

parent c961a0a1
......@@ -9,6 +9,9 @@ TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../..
SUBDIR = robots/vmcd
SYSTEM := $(shell uname -s)
MEZZ_INSTALL = /opt/mezzanine-0.00
include $(OBJDIR)/Makeconf
PROGS = vmc-client vmcd
......@@ -48,5 +51,7 @@ vmc-client: vmc-client.o
vmcd: vmcd.o ../mtp/libmtp.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ vmcd.o $(LIBS)
install:
clean:
rm -f *.o
......@@ -50,7 +50,7 @@ static int looping = 1;
static FILE *posfile = NULL;
static unsigned int mezz_event_count = 0;
static volatile unsigned int mezz_event_count = 0;
static void usage(void)
{
......@@ -196,11 +196,6 @@ int main(int argc, char *argv[])
signal(SIGTERM, sigquit);
signal(SIGINT, sigquit);
sa.sa_handler = sigusr1;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGUSR1, &sa, NULL);
mezzfile = argv[0];
if (debug) {
......@@ -243,6 +238,11 @@ int main(int argc, char *argv[])
}
#endif
sa.sa_handler = sigusr1;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGUSR1, &sa, NULL);
if (pidfile) {
FILE *fp;
......@@ -332,8 +332,8 @@ int main(int argc, char *argv[])
*/
if (mezz_event_count > last_mezz_event) {
char buffer[8192];
info("sending updates\n");
// info("sending updates\n");
if ((rc = encode_packets(buffer, mezzmap)) == -1) {
errorc("unable to encode packets");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment