diff --git a/script/test/test_proc.py b/script/test/test_proc.py index 303dcf7..8283e30 100644 --- a/script/test/test_proc.py +++ b/script/test/test_proc.py @@ -2,15 +2,15 @@ import time print ("ENTER") def foo(name): - time.sleep(5.0) - print ("Enter") + time.sleep(5.0) + print('OK -> ', name) with open('/Users/gobbo_a/readme.txt', 'w') as f: f.write('hello' ) - print('hello', name) + if __name__ == '__main__': - + p = ctx.Process(target=foo, args=('bob',)) p = mp_fork.Process(target=f, args=('bob',)) #p = mp_spawn.Process(target=f, args=('bob',))