Changeset b7d581b


Ignore:
Timestamp:
Jun 11, 2009 1:22:56 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ce50a9ca
Parents:
4975d30
Message:

Dont try to dump threads unless there is a wrapper and we arent on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterWatchdog.java

    r4975d30 rb7d581b  
    9696            if (_consecutiveErrors == 1) {
    9797                _log.log(Log.CRIT, "Router appears hung, or there is severe network congestion.  Watchdog starts barking!");
    98                 // This might work on linux...
     98                // This works on linux...
    9999                // It won't on windows, and we can't call i2prouter.bat either, it does something
    100100                // completely different...
    101                 ShellCommand sc = new ShellCommand();
    102                 boolean success = sc.executeSilentAndWaitTimed("./i2prouter dump", 10);
    103                 if (success)
    104                     _log.log(Log.CRIT, "Threads dumped to wrapper log");
     101                if (System.getProperty("wrapper.version") != null && !System.getProperty("os.name").startsWith("Win")) {
     102                    ShellCommand sc = new ShellCommand();
     103                    boolean success = sc.executeSilentAndWaitTimed("./i2prouter dump", 10);
     104                    if (success)
     105                        _log.log(Log.CRIT, "Threads dumped to wrapper log");
     106                }
    105107            }
    106108        }
Note: See TracChangeset for help on using the changeset viewer.