Re: Kernel Edgeplay
Chris Babcock <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Organization | Kolonel Panic |
| Message-ID | <[email protected]> |
On Sat, 3 Jan 2009 09:57:21 +0100 Paolo <[email protected]> wrote: > On Wed, Dec 31, 2008 at 03:58:54PM -0700, Chris Babcock wrote: > ... > > Each of the daemon children grabs data off an input pipe, does a > > merge with a template supplied at creation, runs an SMTP > > conversation via a telnet process to the local mail server and lets > > the parent know when > > why not using a 1-shot sendmail(8) process or SMTP session via eg > socket(1)? Prototype uses sendmail, but that's not going to scale for larger lists. I'm not using socket because I'm a script jockey not a C programmer. > ... > > The obvious problem here is that every child spawned off the main > > loop is using 6 or 9 processes at any time. When you add in the > > processes > > you could use just 1 'killer' process, which checks > eg /var/run/my-smtp/*.pid stat(1)ing such *.pid and killing off those > that timed out. *THAT* is exactly what I meant by a better idiom (below). It's not important to catch each stalled process in real time. The design criteria are (1) not dropping a recipient if the child's communication process stalls and (2) not exceeding the maximum process count for the machine. That will work. Thank you. > > do want to know if there's a better idiom for watching a process > > that I'm missing coming at the problem like a shell script. Also, > > if there's > > check eg http://cr.yp.to/daemontools.html for some idea. Quite a clue bat and interesting on its own too. Thanks for the pointer. Chris ------------------------------------------------------------------------------ _______________________________________________ Crm114-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc
(application/pgp-signature, 489 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBAgAGBQJJX3xOAAoJEKEkGnV5bbn/Tz8IAKH4SJ4pTdvh1IatbbvucHTA mRoWfCckMvbDYUlJYejJppRbh0JBI4Ypx6JuH9sWFtcuiJH9FOTkkNv1cnfM9Jt1 +Ozh4Mkr8LKioAU26E8HnPcdx/mkgg05Geda5V+XaWy2VMo3oMZfMSxVe/6H7Xwq l9EPZU6ZOIfwPi9ZAlKZt4UKprS6JrBWqu0gbu7/JjEFQKNcqJsB39vZ4pJNXqq9 AXc81225KCfaPR1fimm829bHVZQ3uabgCqWB/XIAMqCowjIpx7VOSQhu/m57VOeK 1pTGskb7Ntsp/5b5LwZDS4Q+IdjSLg6/HbyA29s5qaHUoEgukcs9NOtkj4RME0o= =Ogm3 -----END PGP SIGNATURE-----