Bugzilla – Attachment 892 Details for
Bug 856
scp hangs on FIFOs rather than erroring
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't block on FIFOs
scp-nonblock-fifo.diff (text/plain), 640 bytes, created by
Damien Miller
on 2005-04-21 18:45:37 AEST
(
hide
)
Description:
Don't block on FIFOs
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2005-04-21 18:45:37 AEST
Size:
640 bytes
patch
obsolete
>Index: scp.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/scp.c,v >retrieving revision 1.121 >diff -u -p -r1.121 scp.c >--- scp.c 2 Apr 2005 12:41:16 -0000 1.121 >+++ scp.c 21 Apr 2005 08:44:58 -0000 >@@ -513,12 +513,13 @@ source(int argc, char **argv) > name); > goto next; > } >- if ((fd = open(name, O_RDONLY, 0)) < 0) >+ if ((fd = open(name, O_RDONLY|O_NONBLOCK, 0)) < 0) > goto syserr; > if (fstat(fd, &stb) < 0) { > syserr: run_err("%s: %s", name, strerror(errno)); > goto next; > } >+ unset_nonblock(fd); > switch (stb.st_mode & S_IFMT) { > case S_IFREG: > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 856
: 892