bluecherrydvr / bluecherry-apps-issues

1 stars 0 forks source link

"Updating length of abandoned" #115

Closed andrey-utkin closed 6 years ago

andrey-utkin commented 8 years ago
  1. Let bc-server handle SIGTERM etc. correctly and finalize recorded files.
  2. If needed, let this "updating" technique stay around (e.g. for purpose of upgrade from previous version), but start it in background, not in a blocking mode before start of service threads.
andrey-utkin commented 8 years ago

This causes critical failures for V4L2 cards, and also possibly iSCSI setups. Important kernal resources may stay not released on such sudden abortion.

Mar 14 11:39:19 cctv bc-server[1418]: E(14/Port 14 on Card 1): Failed to open /dev/video13: -12 (Cannot allocate memory)
Mar 14 11:39:19 cctv bc-server[1418]: E(13/Port 13 on Card 1): Failed to open /dev/video12: -12 (Cannot allocate memory)
Mar 14 11:39:19 cctv bc-server[1418]: E(15/Port 15 on Card 1): Failed to open /dev/video14: -12 (Cannot allocate memory)
Mar 14 11:39:19 cctv bc-server[1418]: E(16/Port 16 on Card 1): Failed to open /dev/video15: -12 (Cannot allocate memory)