Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elbestream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
misc
elbestream
Commits
de3a636c
Unverified
Commit
de3a636c
authored
Sep 03, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve write error handling and reporting
parent
e33391b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
elbestream.c
elbestream.c
+10
-7
No files found.
elbestream.c
View file @
de3a636c
...
...
@@ -527,8 +527,9 @@ main(int argc, char *argv[], char * const envp[])
ibufr
=
ibuf
+
(
isz
-
tryisz
);
isz
=
tryisz
;
if
(
osz
>
0
)
{
(
void
)
vmwrite
(
STDOUT_FILENO
,
obuf
,
osz
);
if
(
osz
>
0
&&
vmwrite
(
STDOUT_FILENO
,
obuf
,
osz
)
<
0
)
{
cleanup
();
pexit
(
"write stdout"
);
}
thr
=
pthread_self
();
...
...
@@ -541,11 +542,13 @@ main(int argc, char *argv[], char * const envp[])
if
(
writefd
>=
0
)
{
blockf
(
writefd
);
if
(
isz
>
0
)
(
void
)
vmwrite
(
writefd
,
ibufr
,
isz
);
if
(
isz
>
0
&&
vmwrite
(
writefd
,
ibufr
,
isz
)
<
0
)
{
perror
(
"write bufffer to trycmd"
);
}
else
{
spl_in
[
0
]
=
STDIN_FILENO
;
spl_in
[
1
]
=
writefd
;
(
void
)
splicer
(
spl_in
);
}
closef
(
writefd
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment