# HG changeset patch # User Paul Boddie # Date 1702404960 -3600 # Node ID e27f11f25e7e7e0245c30d589c3409f64e3dfb26 # Parent 3757bedaf79e88ebe9c2e3698be0d79a60dfa90c Added a reminder about the need to provide a process monitor reference in advance of starting a program. diff -r 3757bedaf79e -r e27f11f25e7e libexec/lib/src/process_creator_context_resource.cc --- a/libexec/lib/src/process_creator_context_resource.cc Tue Dec 12 01:46:46 2023 +0100 +++ b/libexec/lib/src/process_creator_context_resource.cc Tue Dec 12 19:16:00 2023 +0100 @@ -70,7 +70,10 @@ /* Obtain a reference to a new process and send the reference to the client. This must be done in advance of actually starting the program since the - program may complete before the client gets the reference. */ + program may complete before the client gets the reference. + + The reference needs to be shared and its reference count increased to + prevent the closure of the process monitor. */ long err = _creator->init_process(process);