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

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



I use a similar process like this on windows, but condor rm removes the main
process, the batch file. The only difference I can see is that in my case
the batch file spawns the main .exe as an independent process and sleeps and
launches other processes to ftp and finally cleans up the .exe at the end of
the run time.

I don't understand your process tree, are the others independent processes
or do they wait for some.exe to terminate before exiting?

I would suggest he spawns separate processes and use a master batch file to
monitor them, if not I believe (I may be wrong), the process that is
currently running is some.exe

Alan Arokiam,

The Materials Modelling Group,

Materials Science and Engineering,

Department of Engineering,

The University of Liverpool,

Brownlow Hill,

Liverpool,

UK.

L69 3GH

Tel: 44-(0)151-794-4671

 

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ian Chesal
Sent: 20 December 2004 21:53
To: Condor-Users Mail List
Subject: [Condor-users] condor_rm and process killing on Windows

I have a user with an experiment that spawns a process tree something
like this:

  go.bat
    MKS csh
      MKS csh
        some.exe

His third level MSK csh process does some file returning for him via
FTP.

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.

This is pretty cool if condor_rm does smart things like this. But I've
got some doubts that this is really the case and we're just seeing some
strange corner case. Does condor_rm kill the deepest process in a tree
or does it just kill the go.bat process and leave the OS to clean up the
orphaned processes? The latter is what were expecting.

- Ian


--
Ian R. Chesal <ichesal@xxxxxxxxxx>
Senior Software Engineer

Altera Corporation
Toronto Technology Center
Tel: (416) 926-8300


_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
http://lists.cs.wisc.edu/mailman/listinfo/condor-users