1 parent
b7121464ee
commit
fd879a0b4c
2 files changed
+3
-6
No files matched your search
@@ -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