We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be65aaf commit 6723608Copy full SHA for 6723608
1 file changed
agent/src/exec.rs
@@ -289,14 +289,15 @@ fn run_common(
289
)
290
.unwrap();
291
292
- /*
293
- * Only send an exit notification if this is the primary task
294
- * process.
295
- */
296
- if ab.bgproc.is_none() {
297
- tx.blocking_send(ab.exit(&start, &end, i32::MAX)).unwrap();
+ if ab.bgproc.is_some() {
+ /*
+ * No further notifications are required for background
+ * processes.
+ */
+ return;
298
}
299
300
+ tx.blocking_send(ab.exit(&start, &end, i32::MAX)).unwrap();
301
false
302
303
Ok(es) => {
@@ -317,6 +318,7 @@ fn run_common(
317
318
* No further notifications are required for background
319
* processes.
320
*/
321
322
323
324
if let Some(sig) = es.signal() {
0 commit comments