make multiprocessing

This commit is contained in:
elvis
2022-04-25 21:56:13 +02:00
parent e67d3b5580
commit 5151418090
2 changed files with 5 additions and 3 deletions

View File

@ -25,10 +25,12 @@ VPATH := $(SRC_DIR) $(wildcard $(LIB_DIR)/*)
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
.PHONY: all clean cleanall .PHONY: all multi clean cleanall
all:
@$(MAKE) -s -j multi
all: $(BUILD_DIR)/server $(BUILD_DIR)/client multi: $(BUILD_DIR)/server $(BUILD_DIR)/client
@echo "Compiled!" @echo "Compiled!"

View File

@ -197,7 +197,7 @@ int openFile(const char* pathname, int flags) {
return -1; return -1;
} }
if(isOpen(pathname, flags)) { // already open if(isOpen(pathname, flags)) { // already open
return 0; return -1;
} }
// invio al server la stringa "openFile|$(pathname)|$(flags)" // invio al server la stringa "openFile|$(pathname)|$(flags)"