Skip to content
Snippets Groups Projects
Commit 18a740bc authored by Joey Le's avatar Joey Le
Browse files

Read over my code, and I'm ready to submit this now

parent 9b00daf2
Branches main
No related tags found
No related merge requests found
......@@ -218,7 +218,6 @@ int start_client(char *server_ip, int port){
return ERR_RDSH_CLIENT;
}
// Set up the server address structure
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
......@@ -228,7 +227,6 @@ int start_client(char *server_ip, int port){
return ERR_RDSH_CLIENT;
}
// Connect to the server
ret = connect(cli_socket, (struct sockaddr *)&addr, sizeof(addr));
if (ret < 0) {
perror("connect");
......
......@@ -489,7 +489,7 @@ int send_message_string(int cli_socket, char *buff) {
int pids_st[clist->num]; // Array to store process statuses
int exit_code;
//printf("SERVER: Executing pipeline with %d commands.\n", clist->num);
printf("SERVER: Executing pipeline with %d commands.\n", clist->num);
for (int i = 0; i < clist->num - 1; i++) {
if (pipe(pipes[i]) == -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment