You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2010/02/11 15:19:13 UTC

[Bug 6333] Win32: Bad file descriptor in SubProcBackChannel

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6333

Daniel <le...@jam-software.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lemke@jam-software.com

--- Comment #1 from Daniel <le...@jam-software.com> 2010-02-11 14:19:13 UTC ---
Can be "solved" like this:

@@ -74,12 +74,14 @@
   ($self->{latest_kid_fh}, $self->{parent}) =
             $io->socketpair(AF_UNIX,SOCK_STREAM,PF_UNSPEC)
             or die "backchannel: socketpair failed: $!";
-
-  # set those to use non-blocking I/O
-  $self->{parent}->blocking(0)
-            or die "backchannel: set non-blocking failed: $!";
-  $self->{latest_kid_fh}->blocking(0)
-            or die "backchannel: set non-blocking failed: $!";
+        
+    # set those to use non-blocking I/O
+    if (!Mail::SpamAssassin::Util::am_running_on_windows()) {  
+          $self->{parent}->blocking(0)
+                    or die "backchannel: set non-blocking failed: $!";
+          $self->{latest_kid_fh}->blocking(0)
+                    or die "backchannel: set non-blocking failed: $!";
+    }
 }

 sub setup_backchannel_parent_post_fork {

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.