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

Mailing List Archive: SpamAssassin: devel

[Bug 6333] Win32: Bad file descriptor in SubProcBackChannel

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Feb 11, 2010, 6:19 AM

Post #1 of 3 (392 views)
Permalink
[Bug 6333] Win32: Bad file descriptor in SubProcBackChannel

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

Daniel <lemke [at] jam-software> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |lemke [at] jam-software

--- Comment #1 from Daniel <lemke [at] jam-software> 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.


bugzilla-daemon at bugzilla

Feb 11, 2010, 7:37 AM

Post #2 of 3 (384 views)
Permalink
[Bug 6333] Win32: Bad file descriptor in SubProcBackChannel [In reply to]

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

Justin Mason <jm [at] jmason> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |jm [at] jmason

--- Comment #2 from Justin Mason <jm [at] jmason> 2010-02-11 15:37:16 UTC ---
um, I would assume that would have pretty serious consequences. Can you use
round robin instead?

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


bugzilla-daemon at bugzilla

Feb 12, 2010, 3:57 AM

Post #3 of 3 (361 views)
Permalink
[Bug 6333] Win32: Bad file descriptor in SubProcBackChannel [In reply to]

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

--- Comment #3 from Daniel <lemke [at] jam-software> 2010-02-12 11:57:17 UTC ---
That may be but for now it's working fine and the spamd is running pretty
stable (next step is to replace the old 323 spamd and testing it in production
environment).

Most of these fixes were already documented in SAWin32 and ran very stable. If
there don't appear any bigger issues, I'd suggest to add the fixes to the sa
source (since it's irrelevant to the stability of the unix version anyway).

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

SpamAssassin devel 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.