mirror of
https://github.com/smittix/intercept.git
synced 2026-07-18 22:38:10 -07:00
Remove bufsize=1 from sensor subprocess
Line buffering only works with text mode, not binary pipes. Fixes RuntimeWarning about line buffering. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -130,8 +130,7 @@ def start_sensor() -> Response:
|
|||||||
app_module.sensor_process = subprocess.Popen(
|
app_module.sensor_process = subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE
|
||||||
bufsize=1
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Start output thread
|
# Start output thread
|
||||||
|
|||||||
Reference in New Issue
Block a user