[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_rm and process killing on Windows

When some.exe is running and he does condor_rm, condor is actually
killing the some.exe process -- the deepest process in the tree. Leaving
it's parent csh process thinking that some.exe finished and that it
should return a bunch of stuff to him over FTP.

Nope, you're mixed up.

When the execute machine is instructed to vacate (e.g. as a result of someone running condor_rm on a running job), condor sends WM_CLOSE messages to each process underneath the starter, regardless of their position in the "tree" (in fact, windows doesn't use process hierarchies at all).

If you wanted to do something other than immediately exit when the WM_CLOSE message is posted to your process, you have to override the event handler (see http://www.cs.wisc.edu/condor/manual/v6.7/6_2Microsoft_Windows.html#SECTION00723000000000000000 ). I'm not aware of any way to do that using MKS csh or cmd.exe batch scripts, however.