diff --git a/programs/shell.c b/programs/shell.c index 50ff0a2..922e132 100644 --- a/programs/shell.c +++ b/programs/shell.c @@ -719,6 +719,7 @@ int main(int argc, char *argv[]) if(read(motd_fd, buffer, sizeof(char)*256) != -1){ printf("%s \n", buffer); } + close(motd_fd); } // Move inside the home directory.