Project

General

Profile

Feature #6846

contract template disappears on exec

Added by Robert Mustacchi over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2016-03-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Normally contracts are used by activating a contract template before forking. When the new process is created via fork it will get a new contract initialized from the template. If there is no active template the new process remains in the same contract as its parent.

The problem is that we want several processes in the same contract, but we cannot have any of their children in the same contract (since if any of those children exit, the suicide pact will kill everyone).

However, we do not control any of the source of the application or the logger so we cannot activate a contract template immediately before forking. Instead, we need to activate a new template immediately before we exec the application or the logger.

Unfortunately, the active template is cleared when you exec (although this is completely undocumented).

Also available in: Atom PDF