while (1)
{
- ssize_t writeret;
+ Lstream_data_count writeret;
chunklen = Lstream_read (lstream, chunkbuf, 512);
if (chunklen <= 0)
if (EMACS_KILLPG (pgid, signo) == -1)
{
/* It's not an error if our victim is already dead.
- And we can't rely on the result of killing a zombie, since
- XPG 4.2 requires that killing a zombie fail with ESRCH,
- while FIPS 151-2 requires that it succeeds! */
+ And we can't rely on the result of killing a zombie, since
+ XPG 4.2 requires that killing a zombie fail with ESRCH,
+ while FIPS 151-2 requires that it succeeds! */
#ifdef ESRCH
if (errno != ESRCH)
#endif
xzero (hints);
hints.ai_flags = AI_CANONNAME;
+#ifdef IPV6_CANONICALIZE
hints.ai_family = AF_UNSPEC;
+#else
+ hints.ai_family = PF_INET;
+#endif
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = 0;
LISP_STRING_TO_EXTERNAL (host, ext_host, Qnative);
failed_connect = 1;
close (s);
+ s = -1;
speed_up_interrupts ();