Gary Benson writes:
 > Hi all,
 > 
 > Each time you execute a file with Runtime.exec() a java.lang.VMProcess
 > is created.  The first time one of these is created it creates a
 > thread and calls its setDaemon() method which (eventually) checks
 > RuntimePermission("modifyThread").
 > 
 > I guess there should be a doPrivileged() in here somewhere, but where?

I guess I don't understand the real problem.  Would it not make sense
simply to wrap the

        if (processThread == null)
          {
            processThread = new ProcessThread();
            processThread.setDaemon(true);
            processThread.start();
          }

in a doPrivileged ?

Andrew.


Reply via email to