[Bug 1306877] Re: sshd stops accepting new connections after configuration reload

2014-04-11 Thread TAKAHASHI Shuhei
This is the change I mentioned above:
https://github.com/nya3jp/openssh-debian/commit/0334ce32304e9ba2a10ee5ca49ca6e8ff3ba6cf4

As a workaround, I commented out these two lines in /etc/init/ssh.conf:
  # env SSH_SIGSTOP=1
  # expect stop

Now "initctl reload ssh" works fine, though I'm not really sure I'm
doing a "right" thing.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1306877

Title:
  sshd stops accepting new connections after configuration reload

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1306877/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1306877] [NEW] sshd stops accepting new connections after configuration reload

2014-04-11 Thread TAKAHASHI Shuhei
Public bug reported:

When upstart is enabled, sshd stops accepting new connections after
reloading configuration by "initctl reload ssh".

It looks like sshd is frozen with SIGSTOP after receiving SIGHUP.

[nya@sora ~]% ps auxww | grep sshd
root 10557  0.0  0.1  61364  3056 ?Ss   13:46   0:00 /usr/sbin/sshd 
-D
[nya@sora ~]% sudo strace -p 10557
Process 10557 attached
select(7, [3 4], NULL, NULL, NULL^CProcess 10557 detached
 
[nya@sora ~]% sudo reload ssh
[nya@sora ~]% sudo strace -p 10557
Process 10557 attached
--- stopped by SIGSTOP ---

I guess it's caused by a Debian-specific patch:
debian/patches/sigstop.patch. The patch makes sshd STOP when it's ready
to start and have upstart resume it by specifying "expect stop" in
/etc/init/ssh.conf. On receiving SIGHUP sshd re-executes itself and
STOPs again, but upstart does not perform resume.

Reproduced under Ubuntu 14.04 Trusty
Package version: openssh 1:6.6p1-2

** Affects: openssh (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1306877

Title:
  sshd stops accepting new connections after configuration reload

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1306877/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs