Use SIGQUIT instead of SIGINT

refs: #3870

Change-Id: I915d9422d56a441b351bb9ab38a0c8377e1da34f
This commit is contained in:
Ashlesh Gawande
2017-10-25 15:48:39 -05:00
committed by dmcoomes
parent 2ef39c064e
commit 2763f1978e
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ if __name__ == '__main__':
hosts_conf = []
links_conf = []
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGQUIT, signal_handler)
options = parse_args()
+4
View File
@@ -44,6 +44,10 @@ To exit Mini-NDN, type `quit` in the CLI:
mini-ndn> quit
Another option to quit Mini-NDN is sending a SIGQUIT (ctrl+\). SIGINT (ctrl+c)
is reserved for the purpose of stopping applications initiated on the minindn command
line.
For a more in depth explanation of the CLI, please see the
[Mininet Walkthrough](http://mininet.org/walkthrough/).
+1 -1
View File
@@ -59,7 +59,7 @@ class Nfd(NdnApplication):
node.cmd("export HOME=%s" % node.homeFolder)
def start(self):
NdnApplication.start(self, "nfd --config %s >> %s 2>&1 &" % (self.confFile, self.logFile))
NdnApplication.start(self, "setsid nfd --config %s >> %s 2>&1 &" % (self.confFile, self.logFile))
time.sleep(2)
def setStrategy(self, name, strategy):