Is it possible to change the PID in Linux? If anyone know, please tell me.
Requirement: actually I want to bring up the back ground process to foreground, which is being run under the init. So if I can change the PID or parent PID of the process, I can achieve my goal.
No, it’s not possible to do such a thing on Unix. You might be able to use
forkto achieve this effect, but you have to tell us what you are trying to achieve.Obviously, like I said before, you “might” be able to use this.