core/builtins/kill.cpp
changeset 7 184a1eb85cf2
parent 0 7f656887cf89
--- a/core/builtins/kill.cpp	Fri Jul 09 10:11:55 2010 +0100
+++ b/core/builtins/kill.cpp	Mon Jul 26 17:19:00 2010 +0100
@@ -123,13 +123,16 @@
 			PrintWarning(_L("Couldn't open %S (err=%d)"), &fullName);
 			}
 		}
-	if (numFound == 0)
+	if (!iAll)
 		{
-		LeaveIfErr(KErrNotFound, _L("No matches for pattern \"%S\", or all matches are zombies"), &aPattern);
-		}
-	else if (numFound > 1 && !iAll)
-		{
-		PrintWarning(_L("%d further matches for pattern \"%S\" found, be more specific or use --all option"), numFound-1, &aPattern);
+		if (numFound == 0)
+			{
+			LeaveIfErr(KErrNotFound, _L("No matches for pattern \"%S\", or all matches are zombies"), &aPattern);
+			}
+		else if (numFound > 1)
+			{
+			PrintWarning(_L("%d further matches for pattern \"%S\" found, be more specific or use --all option"), numFound-1, &aPattern);
+			}
 		}
 	}