Re: svgalib links switches back to console when connecting

Mikulas Patocka <[email protected]>
Newsgroups gmane.comp.web.links.list
Message-ID <[email protected]>
> Hi all,
>
> I have a strange problem. I use Links 2.1pre9 with svgalib 1.4.3-7.
> Each time links connects to a new server, it switches back to the
> console where it was run from. When I switch back, it operates normally
> until again a new server is contacted (i.e. subsequent requests to the
> same server do not cause this)
>
> I don't think it is caused by DNS lookups, as it happens even when I use
> IP addresses in the URLs.
>
> I tried both with HTTP/1.0 and HTTP/1.1 and the problem occurs with both
> - I think that 1.0 does not have persistent connections (???) - if that
> is true, the problem probably will not have anything to do with the
> actual connect(2)ing to the server and anything happening after that,
> but rather some function that happens before the connect(2)
>
> Also, connecting to a previously used server doesn't cause the problem:
> http://a/something	-> switch to console
> http://b		-> switch to console
> http://a/somethingelse	-> ok, no switch
>
>
> Has anyone had a similar experience?
>
> What can I do narrow down and help solve this problem?

Hi

This is probably because of exit of a child process (it happens when
lookup ends, once name is looked up, it is cached and no lookup thread is
called --- that's why it happens only first time you go to new server).
Older versions of links-2 used exit() function in start_thread in os_dep.c
(note that there are more start_thread functions for different systems,
pick up the one for unix without clone and pthreads), newer versions use
_exit. I think _exit is more appropriate. Look at start_thread, if there's
exit, upgrade for newer links or just rewrite it to _exit and see if
problem persists.

BTW. why do you run links on different console than it was started from? I
thought SVGAlib programs run on the same console.

Mikulas


_______________________________________________
Links-list mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/links-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.