From fd879a0b4c3ca9394ebecae04353ff157bc4c73f Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 29 Apr 2026 09:23:18 +0200 Subject: [PATCH] Experimenting --- test/ioc/st.cmd | 2 ++ test/m_epics_ca_test.cxx | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test/ioc/st.cmd b/test/ioc/st.cmd index 87c061f..23d63bc 100755 --- a/test/ioc/st.cmd +++ b/test/ioc/st.cmd @@ -6,3 +6,5 @@ iocInit() # Initialize the waveform record dbpf("MEPICSCA:TEST:WAVEFORM", "ABC") + +echo "IOC running" diff --git a/test/m_epics_ca_test.cxx b/test/m_epics_ca_test.cxx index d5d4008..b2395f6 100644 --- a/test/m_epics_ca_test.cxx +++ b/test/m_epics_ca_test.cxx @@ -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");