Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-27 Thread Harald Geyer
Hi Ralph, > > Hm, I think if write(2, ...) fails, then we are out of luck anyway. We > > can't give an error message about being unable to give an error > > message. I thought that a successful call of write won't manipulate > > errno, but after rereading the documentation of errno it seems that

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-27 Thread Harald Geyer
> > > > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > > > > - fprintf (stderr, "unable to exec "); > > > > - perror (mhlproc); > > > > + write(2, "unable to exec ", 15); > > > > > > Reminds me of Hollerith constants, i.e. having to manually c

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Ralph Corderoy
Hi Harald, > Hm, I think if write(2, ...) fails, then we are out of luck anyway. We > can't give an error message about being unable to give an error > message. I thought that a successful call of write won't manipulate > errno, but after rereading the documentation of errno it seems that > one

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Jon Steinhart
> > > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > > > - fprintf (stderr, "unable to exec "); > > > - perror (mhlproc); > > > + write(2, "unable to exec ", 15); > > > > Reminds me of Hollerith constants, i.e. having to manually count the > > length of a string lite

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Ralph Corderoy
Hi Harald, > > > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > > > - fprintf (stderr, "unable to exec "); > > > - perror (mhlproc); > > > + write(2, "unable to exec ", 15); > > > > Reminds me of Hollerith constants, i.e. having to manually count the > > length of

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Harald Geyer
> execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > - fprintf (stderr, "unable to exec "); > - perror (mhlproc); > + write(2, "unable to exec ", 15); > + write(2, mhlproc, strlen(mhlproc)); > + write(2, strerror(errno), strlen(strerror(err

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Harald Geyer
> > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > > - fprintf (stderr, "unable to exec "); > > - perror (mhlproc); > > + write(2, "unable to exec ", 15); > > Reminds me of Hollerith constants, i.e. having to manually count the > length of a string literal.

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-26 Thread Ralph Corderoy
Hi, > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); > - fprintf (stderr, "unable to exec "); > - perror (mhlproc); > + write(2, "unable to exec ", 15); Reminds me of Hollerith constants, i.e. having to manually count the length of a string literal.

Re: [Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-25 Thread Robert Elz
Date:Fri, 26 Aug 2005 01:39:55 +0200 From:Harald Geyer <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL); - fprintf (stderr, "unable to exec "); - perror (mhlproc); + w

[Nmh-workers] Proposed solution to Debian Bug#143485

2005-08-25 Thread Harald Geyer
Hi! After discussing http://bugs.debian.org/143485 in detail a few month ago and after discussing whether this is a vfork() issue, I finally had the time to write a patch (attachment). Please have a look, whether this seems sane (at least it fixes the original problem) and commit it to CVS as you