1.1 --- a/tests/dstest_exec_many.cc Wed Mar 22 00:26:17 2023 +0100
1.2 +++ b/tests/dstest_exec_many.cc Wed Mar 22 16:14:29 2023 +0100
1.3 @@ -41,6 +41,10 @@
1.4
1.5 int num_processes = atoi(argv[1]);
1.6
1.7 + /* Obtain the common notifier. */
1.8 +
1.9 + process_notifier_t *notifier = process_notify_task();
1.10 +
1.11 /* Create a new process structure. */
1.12
1.13 process_t process;
1.14 @@ -63,10 +67,6 @@
1.15
1.16 printf("Finished program initiation.\n");
1.17
1.18 - /* Obtain the common notifier. */
1.19 -
1.20 - process_notifier_t *notifier = process_notify_task();
1.21 -
1.22 /* Subscribe to the process for notifications. */
1.23
1.24 err = process_notify_subscribe(&process, NOTIFY_TASK_SIGNAL, notifier);
1.25 @@ -95,6 +95,8 @@
1.26 printf("[%d/%d] End process (flags %" pFMTnotify_flags "x values: %ld, %ld)\n", i, num_processes, flags, values.sig, values.val);
1.27 }
1.28
1.29 + process_notify_close(notifier);
1.30 +
1.31 printf("End of test.\n");
1.32 return 0;
1.33 }