Yes, I'd also noticed that. So I tried the -f option, but it didn't catch
it (for me anyway).

The solution (for me) was to remove the deamonize option (which stops it
spawning), and I use
  strace -o /tmp/strace.out polipo -c /tmp/etc/polipo.conf

to get (I cut out the first bit):
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=40, ...}) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("127.0.0.1")}, 28) = 0
send(4, "\0\3\1\0\0\1\0\0\0\0\0\0\0011\0010\00227\003172\7in-addr\4"...,
41, 0) = 41
poll([{fd=4, events=POLLIN}], 1, 5000)  = 1 ([{fd=4, revents=POLLIN}])
recv(4,
"\0\3\205\200\0\1\0\1\0\0\0\0\0011\0010\00227\003172\7in-addr\4"..., 512,
MSG_DONTWAIT) = 76
close(4)                                = 0
stat64("/opt/var/cache/polipo/", {st_mode=S_IFDIR|0777, st_size=4096, ...})
= 0
access("/root/.polipo-forbidden", F_OK) = -1 ENOENT (No such file or
directory)
access("/etc/polipo/forbidden", F_OK)   = -1 ENOENT (No such file or
directory)
access("/root/.polipo-uncachable", F_OK) = -1 ENOENT (No such file or
directory)
access("/etc/polipo/uncachable", F_OK)  = -1 ENOENT (No such file or
directory)
access("/root/.polipo-forbiddenTunnels", F_OK) = -1 ENOENT (No such file or
directory)
access("/etc/polipo/forbiddenTunnels", F_OK) = -1 ENOENT (No such file or
directory)
open("/var/run/polipo.pid", O_WRONLY|O_CREAT|O_EXCL, 0666) = 4
getpid()                                = 27566
write(4, "27566\n", 6)                  = 6
close(4)                                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(8123),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
listen(4, 1024)                         = 0
write(3, "Established listening socket on "..., 37) = 37
write(3, "8123", 4)                     = 4
write(3, ".\n", 2)                      = 2
socket(PF_LOCAL, SOCK_DGRAM, 0)         = 5
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(5, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 16) = 0
time([1406560384])                      = 1406560384
open("/etc/TZ", O_RDONLY)               = 6
read(6, "GMT0BST,M3.5.0/1,M10.5.0\n", 68) = 25
close(6)                                = 0
send(5, "<13>Jul 28 16:13:04 polipo[27566"..., 78, MSG_NOSIGNAL) = 78
gettimeofday({1406560384, 295666}, NULL) = 0
gettimeofday({1406560384, 295770}, NULL) = 0
poll([{fd=4, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1500000


On 28 July 2014 16:06, Steve D <anarche...@gmail.com> wrote:

> Hmmm, so it seems to be something do with the fork() that happens when
> polipo
> daemonizes. Can you redo this strace with the "-f" option?
>
> S.
>
> On Mon, Jul 28, 2014 at 03:51:04PM +0100, David Bonnes wrote:
> > OK (having never used strace before), I get:
> http://pastebin.com/btmG57Ep
> >
> > The relevant (?) line is:
> >   stat64("/opt/var/cache/polipo/", {st_mode=S_IFDIR|0777, st_size=4096,
> > ...}) = 0
> >
> > I've got no idea what that means!
>
> >
> ------------------------------------------------------------------------------
> > Infragistics Professional
> > Build stunning WinForms apps today!
> > Reboot your WinForms applications with our WinForms controls.
> > Build a bridge from your legacy apps to the future.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>
> > _______________________________________________
> > Polipo-users mailing list
> > Polipo-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/polipo-users
>
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Polipo-users mailing list
> Polipo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/polipo-users
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to