Hylafax Developers Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[hylafax-devel] Re: problem to submit a fax request
> In private mail to me you suggested:
>
> > I found the problem: in hfaxd/HylaFAXServer.c++ getSequenceNumber, I
> > changed
> > open(filename, O_CREAT|O_RDWD|O_EXCL,0600)
> > to
> > open(filename, O_CREAT|O_RDWD,0600)
> > but now when I add a modem, there is no job submitted to this modem.
>
> I'll try that and see where I get. How could something so fundamental have
> gotten broken!!??
As you suggest, that change does not work . . . sendfax just returns. With -v, we can see what's up:
[root@ducent etc]# faxstat -vs
Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.localdomain.
420 localhost.localdomain server cannot initialize: Could not create client/26393: No such file or directory
Syslog logs:
Mar 5 16:04:31 ducent HylaFAX[26393]: connection refused (Could not create client/26393: No such file or directory) from localhost.localdomain [127.0.0.1]
strace of faxstat with no -v flag:
open("/etc/hosts", O_RDONLY) = 3
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=97, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000
read(3, "127.0.0.1\t\tlocalhost.localdomain"..., 4096) = 97
close(3) = 0
munmap(0x40013000, 4096) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
brk(0x804e000) = 0x804e000
open("/etc/services", O_RDONLY) = 4
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=11222, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000
read(4, "# /etc/services:\n# $Id: services"..., 4096) = 4096
read(4, "rtmap\t369/tcp\nrpc2portmap\t369/ud"..., 4096) = 4096
read(4, "03/udp\t\t\t# Zephyr serv-hm connec"..., 4096) = 3030
close(4) = 0
munmap(0x40013000, 4096) = 0
connect(3, {sin_family=AF_INET, sin_port=htons(4559), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
setsockopt(3, SOL_IP, IP_TOS, [16], 4) = 0
setsockopt(3, SOL_SOCKET, SO_OOBINLINE, [1], 4) = 0
dup(3) = 4
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000
_llseek(3, 0, 0xbffff468, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fstat(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
_llseek(4, 0, 0xbffff468, SEEK_CUR) = -1 ESPIPE (Illegal seek)
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
read(3, "420 localhost.localdomain server"..., 1024) = 110
close(3) = 0
munmap(0x40013000, 4096) = 0
close(4) = 0
munmap(0x40014000, 4096) = 0
_exit(0) = ?
time to reverse guillaume's seqf patch.
-Darren