Skip to content
Snippets Groups Projects
Commit cdcf6db7 authored by Ruonan Wang's avatar Ruonan Wang
Browse files

fixed a pipe name problem for MdtmMan

parent a096daad
No related branches found
No related tags found
1 merge request!113re-wrote StreamMan to allow multiple streaming managers to work simultaneously for parallel streaming
......@@ -68,15 +68,15 @@ int MdtmMan::init(json a_jmsg)
// Make pipes
mkdir(m_pipepath.c_str(), 0755);
mkfifo(m_pipename.c_str(), 0666);
mkfifo(m_full_pipename.c_str(), 0666);
if (m_stream_mode == "sender")
{
m_pipe_handler = open(m_pipename.c_str(), O_WRONLY);
m_pipe_handler = open(m_full_pipename.c_str(), O_WRONLY);
}
if (m_stream_mode == "receiver")
{
m_pipe_handler = open(m_pipename.c_str(), O_RDONLY | O_NONBLOCK);
m_pipe_handler = open(m_full_pipename.c_str(), O_RDONLY | O_NONBLOCK);
}
return 0;
}
......
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