Skip to content

Commit 0172352

Browse files
committed
Fix a pid that is passed to taskset command
1 parent f18b887 commit 0172352

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mochi/core/main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,9 @@ def processor(address):
306306
address = str(make_ref())
307307
for i in range(cpu_nums):
308308
p = Process(target=processor, args=(address,))
309+
p.start()
309310
if 'Linux' in system():
310311
os.system('taskset -p -c %d %d' % ((i % cpu_nums), p.pid))
311-
p.start()
312-
313312
return address
314313

315314

0 commit comments

Comments
 (0)