use select() for main loop

This commit is contained in:
Mohamed Boussaffa
2016-03-07 05:37:43 +08:00
parent c0b69e51af
commit 8d6a3c3964
3 changed files with 118 additions and 13 deletions

View File

@@ -16,8 +16,13 @@ runtests: test
# nethogs_testsum
ifeq ($(DEBUG),1)
CFLAGS?=-Wall -Wextra -g -O0
CXXFLAGS?=-Wall -Wextra -g -O0
else
CFLAGS?=-Wall -Wextra
CXXFLAGS?=-Wall -Wextra
endif
OBJS=packet.o connection.o process.o refresh.o decpcap.o cui.o inode2prog.o conninode.o devices.o