Different PID with & and ps
Hi
I use Linux Suse Enterprise server 10. I have installed mc on it. While sending mc to background with mc & I receive a PID for example 7521 but when I use ps command to check the active processes, this PID (7521) is assigned to bash process and mc ID has changed to some thing more, for example 7525. Can any one explain me the reason? For other processes that I have checked, the assigned PID is same. Thanks in advance. |
Please post the line you are using to send mc to background with mc &
|
I use these lines...
mc & [1] 5704 ps 5502 pts/1 00:00:00 bash 5704 pts/1 00:00:00 bash 570B pts/1 00:00:00 mc 5710 pts/1 00:00:00 ps [1]+ stopped mc |
Intriguing. Here's equivalent from Slackware 13.0 (sorry -- don't know how to find version of mc; the -V option doesn't give it, grepping all the /var/log/packages files for /usr/bin/mc doesn't find it ...)
Code:
c:~$ mc & |
Code:
root@Peanut:/home/donkey# vim & do the commands : Code:
export |
My output for vim is same as yours.
I think because mc is visual view of shell, first, shell should run and then mc. Output of the commands you have written is very long. Should I send it anyway? |
Quote:
|
All times are GMT -5. The time now is 06:04 PM. |