smarter pilerget suitable for batch export

This commit is contained in:
SJ
2011-12-28 15:30:53 +01:00
parent b06fae4031
commit b95919c574
6 changed files with 365 additions and 37 deletions

View File

@@ -24,6 +24,7 @@
#endif
#include <openssl/sha.h>
#include "tai.h"
#include "config.h"
#define MSG_UNDEF -1
@@ -47,7 +48,19 @@
#define UNDEF 0
#define READY 1
#define BUSY 2
#define PROCESSED 3
#define MAXCHILDREN 64
typedef void signal_func (int);
struct child {
pid_t pid;
int messages;
int status;
};
struct attachment {
@@ -59,6 +72,13 @@ struct attachment {
};
struct ptr_array {
uint64 ptr;
char piler_id[RND_STR_LEN+2];
int attachment_id;
};
struct list {
char s[SMALLBUFSIZE];
struct list *r;