[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9759 - Extractor/src/main
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9759 - Extractor/src/main |
Date: |
Tue, 15 Dec 2009 11:32:07 +0100 |
Author: grothoff
Date: 2009-12-15 11:32:07 +0100 (Tue, 15 Dec 2009)
New Revision: 9759
Modified:
Extractor/src/main/extractor.c
Log:
fix
Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c 2009-12-15 10:29:21 UTC (rev 9758)
+++ Extractor/src/main/extractor.c 2009-12-15 10:32:07 UTC (rev 9759)
@@ -1170,7 +1170,8 @@
{
stop_process (plugin);
plugin->cpid = -1;
- plugin->flags = EXTRACTOR_OPTION_DISABLED;
+ if (plugin->flags != EXTRACTOR_OPTION_AUTO_RESTART)
+ plugin->flags = EXTRACTOR_OPTION_DISABLED;
return 0;
}
while (1)
@@ -1179,8 +1180,9 @@
&hdr,
sizeof(hdr)))
{
+ if (plugin->flags != EXTRACTOR_OPTION_AUTO_RESTART)
+ plugin->flags = EXTRACTOR_OPTION_DISABLED;
return 0;
- plugin->flags = EXTRACTOR_OPTION_DISABLED;
}
if ( (hdr.type == 0) &&
(hdr.format == 0) &&
@@ -1190,7 +1192,8 @@
if (hdr.mime_len > MAX_MIME_LEN)
{
stop_process (plugin);
- plugin->flags = EXTRACTOR_OPTION_DISABLED;
+ if (plugin->flags != EXTRACTOR_OPTION_AUTO_RESTART)
+ plugin->flags = EXTRACTOR_OPTION_DISABLED;
return 0;
}
data = malloc (hdr.data_len);
@@ -1208,7 +1211,8 @@
{
stop_process (plugin);
free (data);
- plugin->flags = EXTRACTOR_OPTION_DISABLED;
+ if (plugin->flags != EXTRACTOR_OPTION_AUTO_RESTART)
+ plugin->flags = EXTRACTOR_OPTION_DISABLED;
return 0;
}
mimetype[hdr.mime_len] = '\0';
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9759 - Extractor/src/main,
gnunet <=