Fixed mstpcap ctrl-c on Linux. Fixed mstpcap makefile on linux, while excluding cygwin.
This commit is contained in:
@@ -62,24 +62,15 @@ ifeq (${BACDL_DEFINE},-DBACDL_BIP=1)
|
|||||||
SUBDIRS += whoisrouter iamrouter initrouter readbdt
|
SUBDIRS += whoisrouter iamrouter initrouter readbdt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# EKH: only include MSTP stuff if building targets MSTP or ALL. This allows us to compile under Cygwin, which has no support for RS485 (yet)
|
ifeq (${BACNET_PORT},linux)
|
||||||
# I searched for a clean way of doing the 'or' operation and the best I could come up with was http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
|
ifneq (${OSTYPE},cygwin)
|
||||||
addMSTP=
|
SUBDIRS += mstpcap mstpcrc
|
||||||
ifdef BACDL_ALL
|
|
||||||
addMSTP = true
|
|
||||||
endif
|
|
||||||
ifeq (${BACDL_DEFINE},-DBACDL_MSTP=1)
|
|
||||||
addMSTP = true
|
|
||||||
endif
|
|
||||||
ifdef addMSTP # if we want MSTP
|
|
||||||
ifeq (${BACNET_PORT},linux) # AND we are compiling under linux/cygwin
|
|
||||||
SUBDIRS += mstpcap mstpcrc
|
|
||||||
#SUBDIRS += router
|
#SUBDIRS += router
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${BACNET_PORT},win32)
|
ifeq (${BACNET_PORT},win32)
|
||||||
SUBDIRS += ptransfer mstpcap mstpcrc
|
SUBDIRS += ptransfer mstpcap mstpcrc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY : all gateway router clean
|
.PHONY : all gateway router clean
|
||||||
|
|||||||
@@ -853,11 +853,7 @@ static void sig_int(
|
|||||||
if (FD_Pipe != -1) {
|
if (FD_Pipe != -1) {
|
||||||
close(FD_Pipe);
|
close(FD_Pipe);
|
||||||
}
|
}
|
||||||
/* signal to main loop to exit */
|
|
||||||
Exit_Requested = true;
|
Exit_Requested = true;
|
||||||
while (Exit_Requested) {
|
|
||||||
usleep(1000);
|
|
||||||
}
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user