diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 02:34:11 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 02:34:11 +0100 |
| commit | c8255e888cc262f39744cd452a69f9807ecc1cbf (patch) | |
| tree | 8e952a41a9fca9d97a3c43c347463b34ec5025a9 | |
| parent | 8514473287c9594137c6fbc39f5619672ebc2430 (diff) | |
| download | qmail-c8255e888cc262f39744cd452a69f9807ecc1cbf.tar.gz qmail-c8255e888cc262f39744cd452a69f9807ecc1cbf.tar.bz2 qmail-c8255e888cc262f39744cd452a69f9807ecc1cbf.zip | |
[PATCH] qmailqueue
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | qmail.c | 13 |
2 files changed, 14 insertions, 3 deletions
| @@ -1488,12 +1488,12 @@ load qmail-send.o qsutil.o control.o constmap.o newfield.o prioq.o \ | |||
| 1488 | trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o \ | 1488 | trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o \ |
| 1489 | datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a \ | 1489 | datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a \ |
| 1490 | lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o \ | 1490 | lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o \ |
| 1491 | auto_split.o | 1491 | auto_split.o env.a |
| 1492 | ./load qmail-send qsutil.o control.o constmap.o newfield.o \ | 1492 | ./load qmail-send qsutil.o control.o constmap.o newfield.o \ |
| 1493 | prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \ | 1493 | prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \ |
| 1494 | qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \ | 1494 | qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \ |
| 1495 | wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \ | 1495 | wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \ |
| 1496 | substdio.a error.a str.a fs.a auto_qmail.o auto_split.o | 1496 | substdio.a error.a str.a fs.a auto_qmail.o auto_split.o env.a |
| 1497 | 1497 | ||
| 1498 | qmail-send.0: \ | 1498 | qmail-send.0: \ |
| 1499 | qmail-send.8 | 1499 | qmail-send.8 |
| @@ -6,8 +6,17 @@ | |||
| 6 | #include "fd.h" | 6 | #include "fd.h" |
| 7 | #include "qmail.h" | 7 | #include "qmail.h" |
| 8 | #include "auto_qmail.h" | 8 | #include "auto_qmail.h" |
| 9 | #include "env.h" | ||
| 9 | 10 | ||
| 10 | static char *binqqargs[2] = { "bin/qmail-queue", 0 } ; | 11 | static char *binqqargs[2] = { 0, 0 } ; |
| 12 | |||
| 13 | static void setup_qqargs() | ||
| 14 | { | ||
| 15 | if(!binqqargs[0]) | ||
| 16 | binqqargs[0] = env_get("QMAILQUEUE"); | ||
| 17 | if(!binqqargs[0]) | ||
| 18 | binqqargs[0] = "bin/qmail-queue"; | ||
| 19 | } | ||
| 11 | 20 | ||
| 12 | int qmail_open(qq) | 21 | int qmail_open(qq) |
| 13 | struct qmail *qq; | 22 | struct qmail *qq; |
| @@ -15,6 +24,8 @@ struct qmail *qq; | |||
| 15 | int pim[2]; | 24 | int pim[2]; |
| 16 | int pie[2]; | 25 | int pie[2]; |
| 17 | 26 | ||
| 27 | setup_qqargs(); | ||
| 28 | |||
| 18 | if (pipe(pim) == -1) return -1; | 29 | if (pipe(pim) == -1) return -1; |
| 19 | if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; } | 30 | if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; } |
| 20 | 31 | ||
