@@ -6,3 +6,5 @@ iocInit()
|
||||
|
||||
# Initialize the waveform record
|
||||
dbpf("MEPICSCA:TEST:WAVEFORM", "ABC")
|
||||
|
||||
echo "IOC running"
|
||||
|
||||
@@ -44,13 +44,8 @@ class IocProcess {
|
||||
_pid = fork();
|
||||
|
||||
if (_pid == 0) {
|
||||
int devnull = open("/dev/null", O_RDWR);
|
||||
|
||||
dup2(devnull, STDIN_FILENO);
|
||||
dup2(devnull, STDOUT_FILENO);
|
||||
dup2(devnull, STDERR_FILENO);
|
||||
|
||||
close(devnull);
|
||||
fprintf(stderr, "Starting IOC with PID %d\n", getpid());
|
||||
|
||||
execl(path.c_str(), path.c_str(), (char *)NULL);
|
||||
perror("execl failed");
|
||||
|
||||
Reference in New Issue
Block a user