[Mini-NDN] An advice about stopping mini

Matteo Bertolino Matteo.Bertolino at eurecom.fr
Fri Dec 2 04:48:41 PST 2016


Dear Ashlesh, actually I don't understand the question.
This is my behaviour:

Without patch:
mininet> node ndnping /prefix
... content from ...
... content from ...
... content from ...
CTRL+C
Exit mininet in a clean way (exit from nfd etc)
user$


With the modification:
mininet> node ndnping /prefix
... content from ...
... content from ...
... content from ...
CTRL+C
mininet> node ndnping /prefix
... content from ...
... content from ...
CTRL + \
Exit mininet in a clean way (exit from nfd etc)
user$

I hope that I answer to your question.

Quoting "Ashlesh Gawande (agawande)" <agawande at memphis.edu>:

> Actually, doesn't doing control + c kills NFD for you, because it   
> does for me?
>
>
> Ashlesh
>
> ________________________________
> From: Mini-NDN <mini-ndn-bounces at lists.cs.ucla.edu> on behalf of   
> Ashlesh Gawande (agawande) <agawande at memphis.edu>
> Sent: Thursday, December 1, 2016 12:53:13 PM
> To: Matteo Bertolino; mini-ndn at lists.cs.ucla.edu
> Subject: Re: [Mini-NDN] An advice about stopping mini
>
>
> Agreed, thanks. I will push a patch.
>
>
> Ashlesh
>
> ________________________________
> From: Mini-NDN <mini-ndn-bounces at lists.cs.ucla.edu> on behalf of   
> Matteo Bertolino <Matteo.Bertolino at eurecom.fr>
> Sent: Thursday, December 1, 2016 3:11:20 AM
> To: mini-ndn at lists.cs.ucla.edu
> Subject: [Mini-NDN] An advice about stopping mini
>
> Good morning,
> I suggest to change a bit the minindn script.
> In my opinion sometimes it could be confortable stopping an
> application running on mini without stopping mini.
> Then, ctrl+c stops both.
>
> I edited the minindn script letting the signal handler managing a
> SIGQUIT instead of a SIGKILL. ( signal.signal(signal.SIGQUIT,
> signal_handler)  )
>
> Then with ctrl+c the application, like the ndnpingserver, is stopped.
> With ctrl+\ minindn exit in a clean way.
>
> matteo
>
> -------------------------------------------------------------------------------
> This message was sent using EURECOM Webmail: http://webmail.eurecom.fr
>
> _______________________________________________
> Mini-NDN mailing list
> Mini-NDN at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr




More information about the Mini-NDN mailing list