search for: shut_rdwr

Displaying 20 results from an estimated 46 matches for "shut_rdwr".

2012 Apr 12
8
Background jobs with #fork
Hi I''ve migrated from Passenger to Unicorn about a week ago. It''s great. Great transparency and management, thanks for this great software! A few of my Rails applications start background jobs using Kernel#fork. Of course, the ActiveRecord connections are closed and reopened again in the parent and child processes. The child process also does its job. Unfortunately, it seems
1999 Dec 21
0
Problem with UTMP recording
...dif #ifdef HAVE_UTMP_H # include <utmp.h> /* For _PATH_XXX */ #endif #ifdef HAVE_UTMPX_H # include <utmpx.h> /* For _PATH_XXX */ #endif #ifdef HAVE_SYS_TIME_H # include <sys/time.h> /* For timersub */ #endif #ifdef HAVE_MAILLOCK_H #include <maillock.h> #endif #ifndef SHUT_RDWR enum { SHUT_RD = 0, /* No more receptions. */ SHUT_WR, /* No more transmissions. */ SHUT_RDWR /* No more receptions or transmissions. */ }; # define SHUT_RD SHUT_RD # define SHUT_WR SHUT_WR # define SHUT_RDWR SHUT_RDWR #endif /* If sys/types.h does not supply intXX_t, supply them...
2000 Apr 29
1
BUG: ssh-agent memory leak
Hey all! I've been using OpenSSH on Linux since version 1.2.2; great work... There is, however, a pretty noticable memory leak in ssh-agent. I use ssh-agent to provide RSA authorization to automatically open an ssh connection to download POP mail every three minutes. When I was using the standard ssh-agent from 1.2.27 (not OpenSSH), I could leave ssh-agent running for the entire uptime of
2001 Jan 09
3
OpenSSH on Reliant UNIX
...is a bug in the - commercial and expensive - compiler. I didn't try gcc on that platform, yet. No, I didn't try 0.9.6, yet. 2. scp will hang after the file transfer(s) The "fix" is to change the line 495 in serverloop.c from shutdown(fdin, SHUT_WR); to shutdown(fdin, SHUT_RDWR); The same which I did in 2.1.1. 3. X11 forwarding does just work for standard X clients - if you configure it with --with-ipaddr-display - but not for all X applications. The reason is that Siemens is using a named pipe in /tmp/.X11-unix for X communication where every other OS uses a s...
2000 Jul 03
1
Antwort: Re: sshd does not exit after scp (hpux 11.00 / ssh 2.1 .1p1)
...ed an older > message that has a stack trace, which if I recall was still the same in > 2.1.1p1. I can provide a newer trace or additional information if > needed. not really... On a non-trusted system with HP AnsiC it seems to work if changing shutdown(fdin, SHUT_WR) to shutdown(fdin, SHUT_RDWR) in serverloop.c (lines 320 & 464) On a trusted system with gcc however this does not seem to have any effect. Here I use #define USE_PIPES 1 in includes.h as workaround I think I will have to do some more checks with compilers/(non-)trusted systems... Or any other ideas? Klaus steve...
2001 Feb 22
3
intermittent stderr
The command "ssh ls -l /doesnotexist" gives various responses: Running from a 200 MHz PentiumPro with dsa key added to ssh-agent: Mistakes worst to fast machine: To a faster 600 MHz dual processor i686 600 MHz machine: ls: /doesnotexist: No such file or directory -- correct nothing at all -- wrong ls: select: Bad file descriptor -- wrong
2003 Aug 19
1
kqueue freezing 5.1R on kevent call
...ktime.tv_nsec = 0; /* CRASHES HERE ITSELF */ i = kevent( queue, events, 1, events, 10, &ktime ); printf( "kevent() returned %d\n", i ); printf( "Closing socket\n" ); /* CRASH!!! Must be a shutdown() call, close() alone won't do it. */ shutdown( sock, SHUT_RDWR ); close( sock ); /* Cleanup if we survive */ printf( "Closing queue\n" ); close( queue ); return 0; }
2019 Jul 25
1
Re: [PATCH libnbd] lib: Kill subprocess in nbd_close.
...est - see nbdkit commit 430f8141. We may want to add h->sock->ops->shutdown() (especially if we want to handle SHUT_WR through adding more states for more graceful shutdown paths, including when TLS is involved), but even in the short-term, something as simple as adding shutdown(h->fd, SHUT_RDWR) immediately before the s->sock->ops->close() would be helpful. That said, I think we want a two-pronged approach - adding a use of shutdown(), but also playing with signal: > - if (h->pid >= 0) /* XXX kill it? */ We're only doing this for connect_command. We must NOT ki...
2001 May 04
19
SSH connection hanging on logout
I am running OpenSSH 2.9p1 on SunOS 5.7 w/4-24-2001 patch cluster. Like many other users I am seeing the hanging session on logout with background processes. This is a huge problem for me as I centrally manage 50+ machines with rdist across ssh. Instead of just complaining about the problem I thought I would put my CS degree to use and try to track down the problem myself. For starters,
2001 Dec 05
1
DISPLAY=localhost
...ror("Failed to allocate internet-domain X11 display socket."); - return NULL; + return -1; } /* Start listening for connections on the socket. */ for (n = 0; n < num_socks; n++) { @@ -2475,53 +2473,10 @@ error("listen: %.100s", strerror(errno)); shutdown(sock, SHUT_RDWR); close(sock); - return NULL; + return -1; } } - /* Set up a suitable value for the DISPLAY variable. */ - if (gethostname(hostname, sizeof(hostname)) < 0) - fatal("gethostname: %.100s", strerror(errno)); - -#ifdef IPADDR_IN_DISPLAY - /* - * HPUX detects the local hostn...
2020 Mar 30
4
[libnbd PATCH 0/2] fix hangs against nbdkit 1.2
nbdkit 1.2 as a server waits for read() to see EOF, even after the client has sent NBD_CMD_DISC. That was fixed in mbdkit 1.4; and most modern NBD servers are smarter than this (they close() the write end of their traffic soon after NBD_CMD_DISC). But it's easy enough to revert nbdkit commit c70616f8 to get back to a server with the same behavior as the older nbdkit, at which point both
2001 Feb 22
11
Lets try this push again.. 2.5.1p2 bugs left.
Things that are still outstanding: 1) Solaris/Redhat/HPUX session.c patch. I've not seen a ya or na on Kevin's pam patch from the Solaris group. 2) Odd Redhat/Debian scp/ssh issues. .. I'm baffled, and I can't replicate the bug. Nor have I seen anything remotely like it reported. 3) SCO.. Is it happy yet for compiling? =) Completed: 1) mdoc2man.pl .. Commited into
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OpenSSH-1.2.1pre19 has been released. http://violet.ibs.com.au/openssh/files/MIRRORS.html The major change in this version is the integration of Andre Lucas' HPUX support. This adds a few other options which may be useful on other systems. Changelog: 19991221 - Integration of large HPUX patch from Andre Lucas <andre.lucas at
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OpenSSH-1.2.1pre19 has been released. http://violet.ibs.com.au/openssh/files/MIRRORS.html The major change in this version is the integration of Andre Lucas' HPUX support. This adds a few other options which may be useful on other systems. Changelog: 19991221 - Integration of large HPUX patch from Andre Lucas <andre.lucas at
2015 Nov 30
1
Re: "Failed to start domain..."
...fcntl(1, F_GETFL) = 0x2 (flags O_RDWR) 25533 ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe60de40e0) = -1 ENOTTY (Inappropriate ioctl for device) 25533 fcntl(2, F_GETFL) = 0x801 (flags O_WRONLY|O_NONBLOCK) 25533 fcntl(2, F_SETFL, O_WRONLY) = 0 25533 shutdown(3, SHUT_RDWR) = 0 25533 close(3) = 0 25533 exit_group(0) = ? 25533 +++ exited with 0 +++ 25531 <... futex resumed> ) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) If there's any other information I can grab, please do let me know. Thanks for the quick reply (and apologies for the Thank...
2019 Jul 25
2
[PATCH libnbd] lib: Kill subprocess in nbd_close.
This is a simple patch which stops nbd_close from waiting too long for a server subprocess to shut down. I wanted to send SIGHUP because the server will be able to catch it and do a clean shutdown if that is required. Is another signal better? Is it right to send a signal here? Rich.
2015 Nov 25
2
"Failed to start domain..."
Sadly, I'm back with another issue. I can do a "system list --all" just fine; however, if I attempt to start the machines, I get back: maas@Bill-MAAS-cc:~$ strace -s 1024 -f -o /tmp/asdfasdf.log virsh -c vbox+ssh://gbadmin@10.20.0.1/system start PXE-client-07 error: Failed to start domain PXE-client-07 error: An error occurred, but the cause is unknown Log files on both client
2001 Feb 21
3
X11 display issues
...ockaddr *)&me, &melen) != 0 + || me.sin_family != AF_INET) { + error("[X11-broken-fwd] Unable to getsockname or unsupported protocol family"); + packet_send_debug("[X11-broken-fwd] Unable to getsockname or unsupported protocol family"); + + shutdown(sock, SHUT_RDWR); + close(sock); + + return NULL; + } + + #ifndef IPADDR_IN_DISPLAY + if ((he = gethostbyaddr ((void *)&me.sin_addr, + sizeof(me.sin_addr),AF_INET)) != NULL) + snprintf (display, sizeof(display),"%.400s:%d.%d", + he->h_name, display_number, screen_number); +...
2017 Jun 17
1
client reconnect fails (was gluster heal entry reappears)
...P, {u32=4, u64=4810363371524}}}, 1, -1) = 1 4550 getsockopt(5, SOL_SOCKET, SO_ERROR, <unfinished ...> 4548 getsockopt(7, SOL_SOCKET, SO_ERROR, <unfinished ...> 4550 <... getsockopt resumed> [110], [4]) = 0 4548 <... getsockopt resumed> [110], [4]) = 0 4550 shutdown(5, SHUT_RDWR <unfinished ...> 4548 shutdown(7, SHUT_RDWR <unfinished ...> 4550 <... shutdown resumed> ) = -1 ENOTCONN (Transport endpoint is not connected) 4548 <... shutdown resumed> ) = -1 ENOTCONN (Transport endpoint is not connected) ... Direct ping+ssh between...
2000 Oct 07
2
[PATCH]: Add tcp_wrappers protection to port forwarding
...packet_send_debug("refused forwarded connection from %.500s to local port %d.", + eval_client(&req), c->host_port); + error("forwarded connection from %.500s to local port %d refused.", + eval_client(&req), c->host_port); + shutdown(newsock, SHUT_RDWR); + close(newsock); + return; + } + } +#endif /* LIBWRAP */ snprintf(buf, sizeof buf, "listen port %d for %.100s port %d, " "connect from %.200s port %d", --- ssh.c.orig Mon Aug 28 20:33:51 2000 +++ ssh.c Mon Oct 2 22:50:29 2000 @@ -30,6 +30,11 @@ RCSI...