Skip to content

Linux driver stalls if a signal is received #1203

@richardroberts

Description

@richardroberts

Required Info
Camera Model D400
Firmware Version Unknown
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) Unknown
Platform Custom
SDK Version Latest 2.x from GitHub

Issue Description

When a process using the RealSense API receives a signal, the driver stalls. This is because EINTR from a select call in backend-v4l2.cpp is not handled by attempting a retry. The attached patch fixes this issue in the testing I did. I'm hoping someone can take a look if this indeed looks like a bug, and whether there are any problems with the proposed fix.

select_check_eintr.patch.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions