Use SIGQUIT instead of SIGINT
refs: #3870 Change-Id: I915d9422d56a441b351bb9ab38a0c8377e1da34f
This commit is contained in:
committed by
dmcoomes
parent
2ef39c064e
commit
2763f1978e
+1
-1
@@ -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()
|
||||
|
||||
|
||||
@@ -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
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user