feat(Process): Add options to disable STDIO in child process #3867

This commit is contained in:
Alex Fabijanic
2023-01-23 12:23:03 +01:00
parent feee864950
commit 4ceb731bba
9 changed files with 94 additions and 28 deletions

View File

@@ -0,0 +1,44 @@
//
// ProcessOptions.h
//
// Library: Foundation
// Package: Processes
// Module: ProcessOptions
//
// Definition of the ProcessOptions class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_ProcessOptions_INCLUDED
#define Foundation_ProcessOptions_INCLUDED
#include "Poco/Foundation.h"
namespace Poco {
enum ProcessOptions
/// Options to configure child process behavior.
{
PROCESS_CLOSE_STDIN = 1,
/// Causes the child process STDIN to be closed.
PROCESS_CLOSE_STDOUT = 2,
/// Causes the child process STDOUT to be closed.
PROCESS_CLOSE_STDERR = 4,
/// Causes the child process STDERR to be closed.
};
} // namespace Poco
#endif // Foundation_ProcessOptions_INCLUDED