Add supervisor node creation

This commit is contained in:
Jon Siwek 2019-10-16 20:10:25 -07:00
parent 7c08488dfc
commit 573e127672
5 changed files with 115 additions and 35 deletions

View file

@ -141,3 +141,9 @@ Pipe& Pipe::operator=(const Pipe& other)
status_flags[1] = other.status_flags[1];
return *this;
}
PipePair::PipePair(int flags, int status_flags, int* fds)
: pipes{Pipe(flags, flags, status_flags, status_flags, fds ? fds + 0 : nullptr),
Pipe(flags, flags, status_flags, status_flags, fds ? fds + 2 : nullptr)}
{
}