[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK
From: |
afn06760 |
Subject: |
Re: LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK |
Date: |
Sun, 15 Mar 1998 10:07:49 GMT |
> * To: address@hidden
> * Subject: Re: LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK
>
>I've had some luck with making a Borland based non-blocking Win32 lookup
>using a global host/phost variable. I don't know how much I like the idea
>of having the global stuff, but I sure like the idea of being able to
>instantly stop lookups. I made a couple mods off the very last post from
>afn06760 to get it working.
>
>I want to try it for a little while to see how it feels, then I will
>merge with afn06760 and get it into the codeset.
> _________________________________________________________________
If you feel guilty about `host' being a static 512-byte array, you might
try the following alternative:
Still static and global:
========================
char *host;
....
host = HTDOS_name("");
=========================
HTDOS_name (which is a valid function when you compile with _WINDOWS)
has a static 1024-byte array, so you don't have to worry about catching
the subthread after you close it.