> #1  0x0806d01f in read_wait (fd=-4, timeout=3600) at read_wait.c:120
> #2  0x08072241 in timed_read (fd=13, buf=0x8092d60, len=4096, timeout=3600, 
> unused_context=0x0) at timed_read.c:73

That makes no sense. timed_read() does not change its argument as shown
below. But it does not matter. The poll() is waiting for your defer(8)
daemon to respond.

> #3  0x0806f20f in vstream_buf_get_ready (bp=0x80918f0) at vstream.c:731
> #4  0x0806eaf7 in vbuf_get (bp=0x80918f0) at vbuf.c:157
> #5  0x08063bcb in attr_vscan0 (fp=0x80918f0, flags=3, ap=0xafb16988 "\001") at
 
> attr_scan0.c:272
> #6  0x08063f9b in attr_scan0 (fp=0x80918f0, flags=3) at attr_scan0.c:427
> #7  0x08056e67 in mail_command_client (class=0x807462e "private",
> name=0x8085810 "defer") at mail_command_client.c:76

Your defer daemons aren't working.


        Wietse

/* timed_read - read with deadline */

ssize_t timed_read(int fd, void *buf, size_t len,
                           int timeout, void *unused_context)
{
    ssize_t ret;

    /*
     * Wait for a limited amount of time for something to happen. If nothing
     * happens, report an ETIMEDOUT error.
     * 
     * XXX Solaris 8 read() fails with EAGAIN after read-select() returns
     * success.
     */
    for (;;) {
        if (timeout > 0 && read_wait(fd, timeout) < 0)
            return (-1);
        if ((ret = read(fd, buf, len)) < 0 && timeout > 0 && errno == EAGAIN) {
            ..warn then sleep...
            continue;
        } else if (ret < 0 && errno == EINTR) {
            continue;
        } else {
            return (ret);
        }
    }
}

Reply via email to