-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/smart/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pyc

ó
î:ïNc@@s~dZddlmZddlZddlZddlmZdad„Z	d„Z
d„Zd„Zd	„Z
d
„ZdS(s*Signal handling for the smart server code.i(tabsolute_importN(ttracecC@s™tdkrdStjdƒxutjƒD]g}y#|ƒ}|dk	rR|ƒnWq*tk
ri‚q*tk
rtjdƒtjƒq*Xq*WdS(sÅThis is the actual function that is registered for handling SIGHUP.

    It will call out to all the registered functions, letting them know that a
    graceful termination has been requested.
    Ns2Caught SIGHUP, sending graceful shutdown requests.s-Error occurred while running SIGHUP handlers:(t
_on_sighuptNoneRtmuttert	valuerefstKeyboardInterruptt	Exceptiontlog_exception_quietly(t
signal_numbertinterrupted_frametreftcb((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pyt_sighup_handler#s
	


cC@sIttddƒdkr!d}ntjtjtƒ}tƒ}||fS(s&Setup a handler for the SIGHUP signal.tSIGHUPN(tgetattrtsignalRRR
t_setup_on_hangup_dict(t
old_signaltold_dict((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pytinstall_sighup_handler8s
		cC@st}tjƒa|S(sóCreate something for _on_sighup.

    This is done when we install the sighup handler, and for tests that want to
    test the functionality. If this hasn'nt been called, then
    register_on_hangup is a no-op. As is unregister_on_hangup.
    (RtweakreftWeakValueDictionary(told((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pyRDscC@s8|\}}|dk	r.tjtj|ƒn|adS(s@Pass in the returned value from install_sighup_handler to reset.N(RRRR(torigRR((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pytrestore_sighup_handlerQscC@stdkrdS|t|<dS(sBRegister for us to call a_callable as part of a graceful shutdown.N(RR(t
identifiert
a_callable((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pytregister_on_hangup`scC@s]tdkrdSyt|=Wn;tk
r1‚n(tk
rXtjdƒtjƒnXdS(s2Remove a callback from being called during sighup.Ns+Error occurred during unregister_on_hangup:(RRRRRRR(R((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pytunregister_on_hangupgs


(t__doc__t
__future__RRRtbzrlibRRRR
RRRRR(((s8/usr/lib/python2.7/dist-packages/bzrlib/smart/signals.pyt<module>s			
		

Copyright © 2017 || Recoded By Mr.Bumblebee