Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions sarracenia/flowcb/gather/am.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
André LeBlanc, ANL, Autumn 2022
"""

import logging, socket, struct, time, sys, os, signal, ipaddress, urllib.parse, getpass, psutil
import logging, socket, struct, time, sys, os, ipaddress, urllib.parse, getpass, psutil
import re
from base64 import b64encode
from random import randint
Expand Down Expand Up @@ -113,9 +113,8 @@ def __init__(self, options):
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

# Add signal handler
## Override outer signal handler with a default one to exit correctly.
signal.signal(signal.SIGTERM, signal.SIG_DFL)
# Let the parent flow's signal handler manage graceful shutdown.
# Previously overrode with SIG_DFL which bypassed all cleanup.


def __WaitForRemoteConnections__(self) -> NoReturn:
Expand Down
7 changes: 3 additions & 4 deletions sarracenia/flowcb/send/am.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
André LeBlanc, ANL, Autumn 2022
"""

import logging, socket, struct, time, signal, sys, os
import logging, socket, struct, time, sys, os
import urllib.parse
from sarracenia.flowcb import FlowCB

Expand Down Expand Up @@ -63,9 +63,8 @@ def __init__(self, options):
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 2)

# Add signal handler
## Override outer signal handler with a default one to exit correctly.
signal.signal(signal.SIGTERM, signal.SIG_DFL)
# Let the parent flow's signal handler manage graceful shutdown.
# Previously overrode with SIG_DFL which bypassed all cleanup.


def wrapbulletin(self, sarra_msg):
Expand Down
Loading