[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] mt non-block patch
From: |
Clint Adams |
Subject: |
[Bug-cpio] mt non-block patch |
Date: |
Thu, 20 Oct 2005 21:22:47 -0400 |
User-agent: |
Mutt/1.5.9i |
Avoid blocking on Linux 2.6 with cpio 2.6. Probably should be guarded.
--- orig/src/mt.c
+++ mod/src/mt.c
@@ -742,9 +742,9 @@
|| (operation == MTDATCOMP)
#endif
)
- tapedesc = rmtopen (tapedev, O_WRONLY, 0, rsh_command_option);
+ tapedesc = rmtopen (tapedev, O_WRONLY | O_NONBLOCK, 0, rsh_command_option);
else
- tapedesc = rmtopen (tapedev, O_RDONLY, 0, rsh_command_option);
+ tapedesc = rmtopen (tapedev, O_RDONLY | O_NONBLOCK, 0, rsh_command_option);
if (tapedesc == -1)
error (1, errno, "%s", tapedev);
check_type (tapedev, tapedesc);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-cpio] mt non-block patch,
Clint Adams <=