mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
17 lines
199 B
Python
17 lines
199 B
Python
import os
|
|
import sys
|
|
import time
|
|
|
|
# Create new process
|
|
pid = os.fork()
|
|
|
|
# Print text
|
|
c = 'p' if pid == 0 else 'c'
|
|
|
|
if pid == 0:
|
|
sys.exit(0)
|
|
|
|
while True:
|
|
time.sleep(1)
|
|
sys.stderr.write(c)
|