Did I find the right examples for you? yes no

All Samples(60)  |  Call(60)  |  Derive(0)  |  Import(0)
Send a signal to the process
            

src/p/y/python-emotiv-HEAD/examples/thesis-bci.py   python-emotiv(Download)
 
        # Start flickering
        ssvepd.send_signal(signal.SIGUSR1)
 
        # Acquire EEG data until classified
 
        # Stop flickering
        ssvepd.send_signal(signal.SIGUSR1)
 
        # There's something to receive from classifier

src/p/y/python-emotiv-HEAD/examples/yes-no-bci.py   python-emotiv(Download)
 
        # Start flickering
        ssvepd.send_signal(signal.SIGUSR1)
 
        # Acquire EEG data for duration seconds and stop flickering

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/IPython/core/magics/script.py   antisocial(Download)
        except KeyboardInterrupt:
            try:
                p.send_signal(signal.SIGINT)
                time.sleep(0.1)
                if p.poll() is not None:

src/i/p/ipython-2.0.0/IPython/core/magics/script.py   ipython(Download)
        except KeyboardInterrupt:
            try:
                p.send_signal(signal.SIGINT)
                time.sleep(0.1)
                if p.poll() is not None:

src/i/p/ipython-HEAD/IPython/core/magics/script.py   ipython(Download)
        except KeyboardInterrupt:
            try:
                p.send_signal(signal.SIGINT)
                time.sleep(0.1)
                if p.poll() is not None:

src/b/c/bc-HEAD/intermediate/doit/doitmagic.py   bc(Download)
        except KeyboardInterrupt:
            try:
                p.send_signal(signal.SIGINT)
                time.sleep(0.1)
                if p.poll() is not None:

src/b/v/bvcs-0.0.1.dev0/bvcs/core.py   bvcs(Download)
    finally:
        if proc.returncode is None:
            proc.send_signal(signal.SIGINT)
            time.sleep(0.1)
            if proc.poll() is None:

src/i/c/icfpc2012-tbd-HEAD/popoffka_scratch/time_enforcer.py   icfpc2012-tbd(Download)
    else:
        print 'not finished, sending SIGINT'
        proc.send_signal(signal.SIGINT)
        time.sleep(10)
        if proc.poll() is not None:
            print 'finished after SIGINT'
        else:
            print 'not finished after SIGINT, sending SIGKILL'
            proc.send_signal(signal.SIGKILL)

src/s/i/simplevisor-0.9/simplevisor/mtb/proc.py   simplevisor(Download)
        try:
            getattr(proc, "send_signal")
            proc.send_signal(signal.SIGKILL)
        except AttributeError:
            try:

src/a/m/amqpclt-0.5/amqpclt/mtb/proc.py   amqpclt(Download)
        try:
            getattr(proc, "send_signal")
            proc.send_signal(signal.SIGKILL)
        except AttributeError:
            try:

  1 | 2 | 3 | 4 | 5  Next