I have a function dosomething()
inside which am doing a os.chroot()
. A process running chroot() cannot get out of chroot jail. So i want this dosomething()
to run as a child process in the main program and i need to wait till the child process gets over . What is the simplest way to do this ?
看一下multiprocess.Process
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.