From 1bc5b05ed5593466dc7446a2e2fdb9cae2d58882 Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Tue, 23 Aug 2022 15:13:14 +0200 Subject: [PATCH] Script execution --- script/test/test_proc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/test/test_proc.py b/script/test/test_proc.py index 86176ae..7290921 100644 --- a/script/test/test_proc.py +++ b/script/test/test_proc.py @@ -1,7 +1,6 @@ -import multiprocessing as mp -#mp.set_start_method('fork') def f(name): + print ("Enter") with open('/Users/gobbo_a/readme.txt', 'w') as f: f.write('hello' ) print('hello', name) @@ -10,4 +9,6 @@ def f(name): p = mp.Process(target=f, args=('bob',)) p.start() -p.join() \ No newline at end of file +print ("STARTED") +p.join() +print ("JOINED -> ", p.exitcode) \ No newline at end of file