title: Error in Python multiprocessing process
body: <p>I am trying a write a python code having multiple processes whose structure and flow is something like this:</p>
  
  <pre><code>import multiprocessing
  import ctypes
  import time
  import errno
  m=multiprocessing.Manager()
  mylist=m.list()
  var1=m.Value('i',0)
  var2=m.Value('i',1)
  var3=m.Value('i',2)
  var4=m.Value(ctypes.c_char_p,"a")
  var5=m.Value(ctypes.c_char_p,"b")
  var6=3
  var7=4
  var8=5
  var9=6
  var10=7
  def func(var1,var2,var4,var5,mylist):
      i=0
      try:
          if var1.value==0:
              print var2.value,var4.value,var5.value
              mylist.append(time.time())
          elif var1.value==1:
              i=i+2
              print var2.value+2,var4.value,var5.value
              mylist.append(time.time())
      except IOError as e:
          if e.errno==errno.EPIPE:
              var3.value=var3.value+1
              print "Error"
  def work():
      for i in range(var3.value):
          print i,var6,var7,va8,var9,var10
          p=multiprocessing.Process(target=func,args=(var1,var2,var4,var5,mylist))
          p.start()
  work()
  </code></pre>
  
  <p>When I run this code, sometimes it works perfectly, sometimes it does not run for exact amount of loop counts and sometimes I get following error:</p>
  
  <pre><code>0
  1
  Process Process-2:
  Traceback (most recent call last):
    File "/usr/lib64/python2.6/multiprocessing/process.py", line 232, in _bootstrap
      self.run()
    File "/usr/lib64/python2.6/multiprocessing/process.py", line 88, in run
      self._target(*self._args, **self._kwargs)
    File "dummy.py", line 19, in func
      if var1.value==0:
    File "/usr/lib64/python2.6/multiprocessing/managers.py", line 1005, in get
      return self._callmethod('get')
    File "/usr/lib64/python2.6/multiprocessing/managers.py", line 722, in _callmethod
      self._connect()
    File "/usr/lib64/python2.6/multiprocessing/managers.py", line 709, in _connect
      conn = self._Client(self._token.address, authkey=self._authkey)
    File "/usr/lib64/python2.6/multiprocessing/connection.py", line 149, in Client
      answer_challenge(c, authkey)
    File "/usr/lib64/python2.6/multiprocessing/connection.py", line 383, in answer_challenge
      message = connection.recv_bytes(256)         # reject large message
  EOFError
  </code></pre>
  
  <p>What does this error mean? What wrong am I doing here? What this error indicates? Kindly guide me to the correct path. I am using CentOS 6.5</p>