strange problem with fork and Python-2.1

Armin Steinhoff a-steinhoff at web.de
Mon May 14 13:16:40 CEST 2001


Hello all,

I have a strange problem with Python2.1 running QNX6.
The test script test_fork1.py returns with following result:

# python -t test_fork1.py
/* sys.path include in script ... */
['', '/usr/local/lib/python2.1', '/usr/local/lib/python2.1/Lib/lib-tk',
'/usr/local/lib/python2.1/lib/python2.1', '/usr/local/
lib/python2.1/lib/python2.1/plat-qnx6',
'/usr/local/lib/python2.1/lib/python2.1/lib-tk',
'/usr/local/lib/python2.1/lib/python2 .1/lib-dynload']
Traceback (most recent call last):
  File "test_fork1.py", line 76, in ?
    main()
  File "test_fork1.py", line 55, in main
    cpid = os.fork()
OSError: [Errno 89] Function not implemented

----------------------------------------------------------------------
That's very strange ... because it works in the interactive mode =:-(
----------------------------------------------------------------------

# python
Python 2.1 (#16, May 11 2001, 18:37:57)
[GCC 2.95.2 19991024 (release)] on qnx6
Type "copyright", "credits" or "license" for more information.
>>> import sys, os
>>>sys.path
['', '/usr/local/lib/python2.1', '/usr/local/lib/python2.1/Lib/lib-tk',
'/usr/local/lib/python2.1/lib/python2.1',
'/usr/local/lib/python2.1/lib/python2.1/plat-qnx6',
'/usr/local/lib/python2.1/lib/python2.1/lib-tk',
'/usr/local/lib/python2.1/lib/python2 .1/lib-dynload']
>>>
>>> os.fork
<built-in function fork>
>>> os.fork()
6512990

Any ideas where to look?

Armin




More information about the Python-list mailing list