to fix error: ‘close’ was not declared in this scope
include <unistd.h>