Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs

[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9)

 

 

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Oct 4, 2009, 2:34 PM

Post #1 of 7 (1115 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9)

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

Adrian <adrian [at] planetcoding> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |adrian [at] planetcoding

--- Comment #10 from Adrian <adrian [at] planetcoding> 2009-10-05 08:34:27 EST ---
Getting signal support would be awesome.
I'm curious if there are any reasons why it wasn't added yet (almost 2
years after the patch was submitted).

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Oct 17, 2009, 4:56 PM

Post #2 of 7 (1011 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

Darren Tucker <dtucker [at] zip> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1438|0 |1
is obsolete| |

--- Comment #11 from Darren Tucker <dtucker [at] zip> 2009-10-18 10:56:25 EST ---
Created an attachment (id=1699)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1699)
update, improve the client UI a bit, remove client pass-through of
signal

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Oct 19, 2009, 12:16 PM

Post #3 of 7 (1004 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

--- Comment #12 from Salvador Fandiņo <sfandino [at] yahoo> 2009-10-20 06:16:51 EST ---
Created an attachment (id=1700)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1700)
extend the signals patch to accept them over the mux socket

Note, Darren Tucker patch 1699 has to be applied first!

This patch adds support for two new -O commands: ps and kill

- ps will list the PIDs of slave ssh processes
- kill allows to send signals

It also adds support to sshd to accept signals by number.

Sample session:
===============
$ ./ssh -S /tmp/mux -M localhost -f perl ~/g/my-ssh/tellsignal.pl
$ ./ssh -S /tmp/mux localhost -O ps
24140
$ ./ssh -S /tmp/mux localhost -O kill HUP 24140
Signal request sent.
signal HUP received
$ ./ssh -S /tmp/mux localhost -O kill 15 24140
Signal request sent.
signal TERM received
$ ./ssh -S /tmp/mux localhost -O kill KILL 24140
Signal request sent.
$

Some notes:
===========
* A new field "tag" is added to Channel, it is used as the session
logical name. The current client implementation (muxclient) uses the
process PID as the tag.

* muxclient() now gets the arguments remaining in argv after getopt
processing so it can use them for the -O commands (currently, just
"kill"). I am not completely sure about this because it can be a bit
counterintuitive when the "-O cmd" part is used before the hostname:

$ ssh -S /tmp/mux -O kill localhost TERM 24140


Bye,

- Salva

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


bugzilla-daemon at bugzilla

Oct 19, 2009, 12:19 PM

Post #4 of 7 (1010 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

Salvador Fandiņo <sfandino [at] yahoo> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |sfandino [at] yahoo

--- Comment #13 from Salvador Fandiņo <sfandino [at] yahoo> 2009-10-20 06:19:15 EST ---
The silly perl script that tells about the received signals...

$ cat tellsignal.pl
#!/usr/bin/perl

for my $name (grep /^[A-Z]+$/, keys %SIG) {
$SIG{$name} = sub { warn "signal $name received\n" };
}

while (1) {
sleep 1;
}

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


bugzilla-daemon at bugzilla

Oct 21, 2009, 3:45 AM

Post #5 of 7 (977 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

Damien Miller <djm [at] mindrot> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm [at] mindrot

--- Comment #14 from Damien Miller <djm [at] mindrot> 2009-10-21 21:45:14 EST ---
(In reply to comment #12)
> Created an attachment (id=1700)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1700) [details]
> extend the signals patch to accept them over the mux socket

Nice idea, and I think I like the concept of "friendly names" for
subsessions but this is really a separate enhancement. Could you please
file it under a new bug of its own?

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Oct 25, 2009, 4:07 AM

Post #6 of 7 (910 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

--- Comment #15 from Salvador Fandiņo <sfandino [at] yahoo> 2009-10-25 22:07:53 EST ---
> Nice idea, and I think I like the concept of "friendly names" for
> subsessions but this is really a separate enhancement. Could you please
> file it under a new bug of its own?

done, see ticket 1664

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


bugzilla-daemon at bugzilla

Oct 25, 2009, 11:47 PM

Post #7 of 7 (895 views)
Permalink
[Bug 1424] Cannot signal a process over a channel (rfc 4254, section 6.9) [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1424

Salvador Fandiņo <sfandino [at] yahoo> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1700|0 |1
is obsolete| |

--- Comment #16 from Salvador Fandiņo <sfandino [at] yahoo> 2009-10-26 17:47:34 EST ---
Created an attachment (id=1709)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1709)
control command for sending signals

This patch contains the implementation of the kill command that allows
to send signals to remote processes.

The patches attached to 1664 must be applied first.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.