Inconsistent behaviour of methods waiting for child process

Discussion in 'Python' started by Marcin Szewczyk, Jan 18, 2013.

  1. Hi,

    I've done some experiments with:
    1) multiprocessing.Process.join()
    2) os.waitpid()
    3) subprocess.Popen.wait()

    These three methods behave completely different when interrupted with a
    signal which I find disturbing.

    Reactions are:
    1) exit with no exception or special return code
    2) OSError exception
    3) quiet retry (no exit)

    The 1) case is very impractical.

    Is there any movement towards standardization of those 3?

    Am I missing something and there is a way to get more information from
    Process.join()?

    --
    Marcin Szewczyk http://wodny.org
    mailto: <- remove b / usuń b
    xmpp: xmpp:
     
    Marcin Szewczyk, Jan 18, 2013
    #1
    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. Razvan

    Inconsistent behaviour

    Razvan, Oct 3, 2004, in forum: Java
    Replies:
    19
    Views:
    556
    Carl Howells
    Oct 11, 2004
  2. Jeff Rodriguez
    Replies:
    23
    Views:
    1,140
    David Schwartz
    Dec 9, 2003
  3. Matt Jones
    Replies:
    0
    Views:
    114
    Matt Jones
    Jan 18, 2013
  4. Marcin Szewczyk
    Replies:
    0
    Views:
    109
    Marcin Szewczyk
    Jan 18, 2013
  5. Z W
    Replies:
    0
    Views:
    179
Loading...

Share This Page