[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2023-11-02 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

jason.na...@protonmail.com changed:

   What|Removed |Added

 CC||jason.na...@protonmail.com

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
___
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2020-02-11 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

Yuuki Harano  changed:

   What|Removed |Added

 CC||masm+bugzi...@masm11.me

--- Comment #8 from Yuuki Harano  ---
I don't know about Korn Shell. However, if it sends SIGHUP to jobs when
termination, then the bug is reproducible with zsh on Linux.
So, I debugged.

1. nohup executes scp with SIGHUP is SIG_IGN.
2. scp forks and executes ssh with SIGHUP is SIG_IGN.
3. scp sets up SIGHUP as its own handler, while ssh doesn't because it
is SIG_IGN.
4. transfer starts.
5. logout.
6. shell sends SIGHUP to scp and ssh. (*1)
7. in scp, the specified signal handler is called. in ssh, SIGHUP is
ignored.
8. in the signal handler in scp, it sends SIGHUP to ssh.
9. ssh ignores the SIGHUP too.
10. scp waits for ssh to exit in the signal handler, so it doesn't send
data to ssh.

(*1) please configure your shell to send SIGHUP to jobs when shell's
termination,
otherwide that doesn't happen.

8.1p1.

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2020-01-28 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

--- Comment #7 from karl.mumf...@ext.ons.gov.uk ---
Created attachment 3354
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3354=edit
working example using csh

output for workingcommand when using C shell on AIX 6.1
nohup scp -vvv /tmp/testfile host:/tmp &
then logout

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2020-01-28 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

--- Comment #6 from karl.mumf...@ext.ons.gov.uk ---
Created attachment 3353
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3353=edit
failing example using ksh

output for hanging command when using Korn shell on AIX 6.1
nohup scp -vvv /tmp/testfile host:/tmp &
then logout

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
___
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2020-01-25 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

--- Comment #5 from Damien Miller  ---
Please attach a debug log ("scp -vvv ...") if you're still experiencing
this. It's not possible to debug this with the information available.

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2018-05-03 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

karl.mumf...@ext.ons.gov.uk changed:

   What|Removed |Added

 Status|CLOSED  |REOPENED
 Resolution|FIXED   |---
 CC||karl.mumf...@ext.ons.gov.uk

--- Comment #4 from karl.mumf...@ext.ons.gov.uk ---
This bug is still there in ssh v7.1p1 on AIX and can be reproduced in
exactly the same way.
It should be noted that the scp hang only occurs in Kron shell i.e. the
same procedure done in Bourne or C shells does not cause the hang.
A workaround is to use the 'screen' command instead of nohup and
disconnect.
Another workaround is to ssh from the source system back to itself, run
the nohup scp & command and then background the looped ssh connection
with ~&

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
___
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2016-08-01 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

Damien Miller  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #3 from Damien Miller  ---
Close all resolved bugs after 7.3p1 release

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
___
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2014-07-02 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

Damien Miller d...@mindrot.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Damien Miller d...@mindrot.org ---
8 months with no followup = no bug

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2013-12-03 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

--- Comment #1 from Damien Miller d...@mindrot.org ---
Can you repeat this using scp -q?

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


[Bug 2091] scp hangs while copying a large file and being executed as a background process ( with nohup )

2013-04-22 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=2091

Damien Miller d...@mindrot.org changed:

   What|Removed |Added

 CC||d...@mindrot.org
   Severity|critical|normal

-- 
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs