[llvm-commits] [poolalloc] r118902 - /poolalloc/trunk/tools/WatchDog/WatchDog.cpp
John Criswell
criswell at uiuc.edu
Fri Nov 12 09:39:48 PST 2010
Author: criswell
Date: Fri Nov 12 11:39:48 2010
New Revision: 118902
URL: http://llvm.org/viewvc/llvm-project?rev=118902&view=rev
Log:
Let people know when the WatchDog barks!
More clearly, print the name of the WatchDog program when it terminates a
program. This makes it clear why a test case failed.
Modified:
poolalloc/trunk/tools/WatchDog/WatchDog.cpp
Modified: poolalloc/trunk/tools/WatchDog/WatchDog.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/tools/WatchDog/WatchDog.cpp?rev=118902&r1=118901&r2=118902&view=diff
==============================================================================
--- poolalloc/trunk/tools/WatchDog/WatchDog.cpp (original)
+++ poolalloc/trunk/tools/WatchDog/WatchDog.cpp Fri Nov 12 11:39:48 2010
@@ -105,7 +105,7 @@
if ((fp = popen(cmd, "r")) != NULL) {
if (fscanf(fp, "%d", &rss) == 1) {
if (rss > rss_max_allowable) {
- fprintf (stderr, "Terminating bad process %d!\n", pid_to_watch);
+ fprintf (stderr, "WatchDog: Terminating bad process %d!\n", pid_to_watch);
kill (pid_to_watch, SIGKILL);
return;
}
More information about the llvm-commits
mailing list