genode/repos/base-foc/src/include/base/internal/child_policy.h

31 lines
896 B
C++

/*
* \brief Hook for kernel-specific child-handling policy
* \author Norman Feske
* \date 2018-01-30
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _INCLUDE__BASE__INTERNAL__CHILD_POLICY_H_
#define _INCLUDE__BASE__INTERNAL__CHILD_POLICY_H_
namespace Genode {
/*
* On Fiasco.OC, we cannot eagerly destroy the CPU session of a child
* as a direct response of a 'Parent::exit' RPC call. The parent gets
* stuck at the CPU-session destruction, which is unexpected. By setting
* the constant below to 'false', we work around the problem.
*
* See https://github.com/genodelabs/genode/issues/2659
*/
constexpr bool KERNEL_SUPPORTS_EAGER_CHILD_DESTRUCTION = false;
}
#endif /* _INCLUDE__BASE__INTERNAL__CHILD_POLICY_H_ */