stopping a threaded script

Discussion in 'Python' started by Bart Nessux, Feb 4, 2004.

  1. Bart Nessux

    Bart Nessux Guest

    When testing scripts, I normally type 'ctrl' combined with the key 'c'
    to abort the script, however, this doesn't work with scripts that are
    threaded. What's the proper way to abort a threaded program?
    Bart Nessux, Feb 4, 2004
    #1
    1. Advertising

  2. > When testing scripts, I normally type 'ctrl' combined with the key 'c'
    > to abort the script, however, this doesn't work with scripts that are
    > threaded. What's the proper way to abort a threaded program?


    If its the proper way is a question of taste, however it is also possible
    with C-c in m-threaded apps. Use the Thread.setDaemon-method - then your
    app will go away when C-c is pressed.

    Regards,

    Diez
    Diez B. Roggisch, Feb 4, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Follower
    Replies:
    1
    Views:
    3,027
    Jeremy Fincher
    Oct 27, 2003
  2. Hank
    Replies:
    1
    Views:
    1,540
    Peter Hansen
    Nov 6, 2003
  3. otaku
    Replies:
    1
    Views:
    232
    Jamis Buck
    Sep 11, 2004
  4. Koszalek Opalek

    Fork (and exec) in a threaded script.

    Koszalek Opalek, Aug 16, 2011, in forum: Perl Misc
    Replies:
    4
    Views:
    486
    Rainer Weikusat
    Aug 16, 2011
  5. JL
    Replies:
    10
    Views:
    154
    Grant Edwards
    Oct 4, 2013
Loading...

Share This Page