Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Still seeing a dead network issue on 10.7
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wayne Scott  
View profile  
 More options Jan 6 2012, 5:48 am
From: Wayne Scott <wsc...@gmail.com>
Date: Fri, 6 Jan 2012 05:48:34 -0500
Local: Fri, Jan 6 2012 5:48 am
Subject: Re: Still seeing a dead network issue on 10.7
Nice deduction, Sherlock!

-Wayne

On Jan 5, 2012, at 9:17 PM, Avery Pennarun <apenw...@gmail.com> wrote:

> Please try the following patch to see if it fixes the MacOS ipfw clearing
> problems.

> ---
> firewall.py |    7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
> mode change 100644 => 100755 main.py

> diff --git a/firewall.py b/firewall.py
> index 4fd8c79..291b7fd 100644
> --- a/firewall.py
> +++ b/firewall.py
> @@ -1,4 +1,4 @@
> -import re, errno, socket, select, struct
> +import re, errno, socket, select, signal, struct
> import compat.ssubprocess as ssubprocess
> import helpers, ssyslog
> from helpers import *
> @@ -398,6 +398,11 @@ def main(port, dnsport, syslog):
>     sys.stdout.write('READY\n')
>     sys.stdout.flush()

> +    # don't disappear if our controlling terminal or stdout/stderr
> +    # disappears; we still have to clean up.
> +    signal.signal(signal.SIGHUP, signal.SIG_IGN)
> +    signal.signal(signal.SIGPIPE, signal.SIG_IGN)
> +
>     # ctrl-c shouldn't be passed along to me.  When the main sshuttle dies,
>     # I'll die automatically.
>     os.setsid()
> diff --git a/main.py b/main.py
> old mode 100644
> new mode 100755
> --
> 1.7.3.1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.