Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
99072120
Commit
99072120
authored
Aug 01, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Looks like resetting EOF was enough
parent
0e99d15e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
camogm.c
src/camogm.c
+6
-0
No files found.
src/camogm.c
View file @
99072120
...
...
@@ -37,6 +37,7 @@
#include "camogm_read.h"
#include "camogm.h"
#ifdef USE_POLL
#include <poll.h>
#endif
...
...
@@ -1346,6 +1347,11 @@ char * getLineFromPipe(FILE* npipe)
fl
=
read
(
npipe
,
&
cmdbuf
[
cmdbufp
],
sizeof
(
cmdbuf
)
-
cmdbufp
-
1
);
#else
fl
=
fread
(
&
cmdbuf
[
cmdbufp
],
1
,
sizeof
(
cmdbuf
)
-
cmdbufp
-
1
,
npipe
);
// reset EOF
if
(
feof
(
npipe
))
{
clearerr
(
npipe
);
}
#endif
cmdbuf
[
cmdbufp
+
fl
]
=
0
;
// is there any complete string in a buffer after reading?
...
...
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