OpenVZ Forum


Home » General » Support » *SOLVED* /proc pid number off-by-one? ... 2.6.18-028test003.1
Re: /proc pid number off-by-one? ... 2.6.18-028test003.1 [message #8310 is a reply to message #8286] Tue, 14 November 2006 16:50 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. can you run it as:
# bash -x <your-script>
please?

2. AFAICS, this script does the following:
a) kills previuos sendmail instance
b) starts new sendmail instance
however, the problem is that SIGTERM requires some time to finish.

So from your example:
1372 pts/0 Z 0:00 [sendmail] <defunct>
is an old sendmail instance.

1373 ? Ss 0:00 sendmail: Queue control
1374 ? S 0:00 sendmail: running queue: /var/spool/clientmqueue
a new one.

and looks like startproc races with SIGTERM and sees that the task still exists, however, when it tries to do stat on /proc/pid/exe it is already dead and it can't stat.

Looks like this.


http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Confixx on openvz VPS
Next Topic: VPS route prob
Goto Forum:
  


Current Time: Thu Jul 11 02:21:55 GMT 2024

Total time taken to generate the page: 0.02498 seconds