Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PSE2017-Test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Sandra Neukirchen
PSE2017-Test
Commits
51bb48aa
Commit
51bb48aa
authored
7 years ago
by
Sebastian Schinzel
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-stdin-write' into 'master'
Fix, schreiben auf STDIN -> STDOUT See merge request !1
parents
14d3ddd0
e4b5fb37
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
echo_server.c
+2
-2
2 additions, 2 deletions
echo_server.c
with
2 additions
and
2 deletions
echo_server.c
+
2
−
2
View file @
51bb48aa
...
...
@@ -135,9 +135,9 @@ void main_loop() {
/*
* Gib die eingegangenen Daten (zusätzlich) auf der Kommandozeile aus.
*/
length
=
write
(
STD
IN
_FILENO
,
buffer
,
length
);
length
=
write
(
STD
OUT
_FILENO
,
buffer
,
length
);
if
(
length
<
0
)
error
(
"ERROR writing to std
in
"
);
error
(
"ERROR writing to std
out
"
);
}
/*
...
...
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