Skip to content
Snippets Groups Projects
Commit d5d07140 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

multichannel_datasource.py: call smrepair before startup if using lvshm datasource

parent 8b74a05d
No related branches found
No related tags found
No related merge requests found
......@@ -463,6 +463,11 @@ class DataSourceInfo(object):
## Data source, one of python.datasource.DataSourceInfo.data_sources
self.data_source = options.data_source
# FIXME: this is ugly, but we have to protect against busted shared memory partitions
if self.data_source == "lvshm":
import subprocess
subprocess.call(["smrepair", "-bufmode", "5", self.shm_part_dict[self.instrument]])
def append_options(parser):
"""!
Append generic data source options to an OptionParser object in order
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment