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
> > > > 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
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
> > > 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
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
> 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
> > 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.
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.
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
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
10 matches
Mail list logo