Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
42e39542
Commit
42e39542
authored
May 05, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daemon mode - -P XXXX -i
parent
ed954e1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
test_mcntrl.py
py393/test_mcntrl.py
+14
-6
No files found.
py393/test_mcntrl.py
View file @
42e39542
...
...
@@ -428,11 +428,18 @@ USAGE
if
socket_conn
:
print
(
prompt
,
end
=
""
)
sys
.
stdout
.
flush
()
if
(
args
.
socket_port
):
ready_to_read
,
_
,
_
=
select
.
select
(
#ready_to_write, in_error
#[socket_conn, sys.stdin], # potential_readers,
[
socket_conn
],
# potential_readers,
[],
# potential_writers,
[])
# potential_errs,
else
:
ready_to_read
,
_
,
_
=
select
.
select
(
#ready_to_write, in_error
[
socket_conn
,
sys
.
stdin
],
# potential_readers,
[],
# potential_writers,
[])
# potential_errs,
if
sys
.
stdin
in
ready_to_read
:
if
(
not
args
.
socket_port
)
and
(
sys
.
stdin
in
ready_to_read
)
:
line
=
raw_input
()
# print ("stdin: ", line)
elif
socket_conn
in
ready_to_read
:
...
...
@@ -449,6 +456,7 @@ USAGE
print
(
"Unexpected result from select: ready_to_read = "
,
ready_to_read
)
continue
else
:
# No sockets, just command line input
if
(
not
args
.
socket_port
):
line
=
raw_input
(
prompt
)
# line=raw_input('x393%s +%3.3fs--> '%(('','(simulated)')[args.simulated],(time.time()-tim))).strip()
...
...
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