summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2010-03-02 16:48:12 +0000
committerfcolin2010-03-02 16:48:12 +0000
commitaa5d9f81a83e248b5052f52079f9186663f05e43 (patch)
treefc58801293f07404e3b888fec3472d361d48121d
parentb9ed5fcd5d6e499b054553c351c02d27150de90c (diff)
downloadivy-c-aa5d9f81a83e248b5052f52079f9186663f05e43.zip
ivy-c-aa5d9f81a83e248b5052f52079f9186663f05e43.tar.gz
ivy-c-aa5d9f81a83e248b5052f52079f9186663f05e43.tar.bz2
ivy-c-aa5d9f81a83e248b5052f52079f9186663f05e43.tar.xz
Correction bug separateur .die-all
-rw-r--r--tools/ivyprobe.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/ivyprobe.c b/tools/ivyprobe.c
index a7913ec..2bbff95 100644
--- a/tools/ivyprobe.c
+++ b/tools/ivyprobe.c
@@ -106,6 +106,7 @@ char * Chop(char *arg)
void HandleStdin (Channel channel, HANDLE fd, void *data)
{
+ static const char *separator = "#";
char buf[4096];
char *line;
char *cmd;
@@ -133,15 +134,18 @@ void HandleStdin (Channel channel, HANDLE fd, void *data)
}
} else if (strcmp(cmd, "dieall-yes-i-am-sure") == 0) {
- arg = IvyGetApplicationList("#");
- arg = strtok (arg, "#");
+ arg = IvyGetApplicationList(separator);
+ arg = strtok (arg, separator);
while (arg) {
app = IvyGetApplication (arg);
if (app)
+ {
+ printf ("Killing '%s'...\n",arg);
IvySendDieMsg (app);
+ }
else
printf ("No Application %s!!!\n",arg);
- arg = strtok (NULL, " ");
+ arg = strtok (NULL, separator);
}
} else if (strcmp(cmd, "bind") == 0) {