[BusyBox] Re: syslogd sometimes dies writing to remote logger
Matt Kraai
kraai at alumni.cmu.edu
Tue Apr 2 09:04:04 UTC 2002
On Mon, Apr 01, 2002 at 10:11:59PM -0800, larry at doolittle.boa.org wrote:
> writev_retry:
> if ( -1 == writev(remotefd,iov, IOV_COUNT)){
> if (errno == EINTR) goto writev_retry;
> error_msg_and_die("syslogd: cannot write to remote file handle on"
> "%s:%d",RemoteHost,RemotePort);
> }
>
> Purists should resist the urge to rewrite this without the goto,
> since a goto is (in this case) the clearest way to express the intent.
Hey, I think the code for safe_read is perfectly clear (in my
unbiased opinion).
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020402/86ed8317/attachment.pgp
More information about the busybox
mailing list