From: vunhat_minh Date: Fri, 30 May 2014 06:10:48 +0000 (+0900) Subject: modify switch code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=30521647017e173662fba93ba0926d311f32a6af;p=rainbowstream.git modify switch code --- diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 64aecf7..282437b 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -171,12 +171,10 @@ def switch(): keyword = g['stuff'].split()[1] if keyword[0] == '#': keyword = keyword[1:] - # Kill old process os.kill(g['stream_pid'], signal.SIGKILL) args = parse_arguments() args.track_keywords = keyword - # Start new process p = Process( target=stream, @@ -188,11 +186,9 @@ def switch(): # Personal stream elif target == 'mine': - # Kill old process os.kill(g['stream_pid'], signal.SIGKILL) args = parse_arguments() - # Start new process p = Process( target=stream,