[Buildbot-commits] [SPAM] [Buildbot] #751: Sending SIGTERM before SIGKILL to a remote shell command that has timed out

Buildbot buildbot-devel at lists.sourceforge.net
Mon Mar 22 10:24:57 UTC 2010


#751: Sending SIGTERM before SIGKILL to a remote shell command that has timed out
------------------------+---------------------------------------------------
Reporter:  Fabrice      |       Owner:           
    Type:  enhancement  |      Status:  new      
Priority:  minor        |   Milestone:  undecided
 Version:  0.7.12       |    Keywords:           
------------------------+---------------------------------------------------
 I have a test step that does not produce output for one hour (the test or
 one of its subtest hangs for some reason). My buildbot is configured to
 timeout this step/command after 3600 seconds of inactivity on stdout or
 stderr. Thus buildbot sends correctly, as expected, a signal SIGKILL(9) to
 it and writes in the log:

 {{{
 command timed out: 3600 seconds without output, killing pid <PID>
 process killed by signal 9
 }}}

 However, my problem is the following. There is no way for me to catch/trap
 SIGKILL(9) in my test step process running on the slave and thus, I am
 missing test logs. Is it possible to make buildbot send a couple of
 SIGTERM(15) signals before sending a SIGKILL(9) signal?

-- 
Ticket URL: <http://buildbot.net/trac/ticket/751>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list