Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cs283
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joey Le
Cs283
Commits
18a740bc
Commit
18a740bc
authored
2 months ago
by
Joey Le
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assignment-06/starter/rsh_cli.c
+0
-2
0 additions, 2 deletions
Assignment-06/starter/rsh_cli.c
Assignment-06/starter/rsh_server.c
+1
-1
1 addition, 1 deletion
Assignment-06/starter/rsh_server.c
with
1 addition
and
3 deletions
Assignment-06/starter/rsh_cli.c
+
0
−
2
View file @
18a740bc
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Assignment-06/starter/rsh_server.c
+
1
−
1
View file @
18a740bc
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment