[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Changes by Yonas : -- versions: +Python 2.5, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: Here's another test, taken from the docs: http://docs.python.org/library/subprocess.html#subprocess-replacements: This is slightly better than Popen because the program executes and shows output, but worse than os.system(), because it still shows the error: --

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: os.system() works: os.system("echo `date` >> /tmp/myfile") r...@yonas-laptop:/usr/lib/exim4/local_scan# cat /tmp/myfile Wed May 27 16:04:54 EDT 2009 Wed May 27 16:04:54 EDT 2009 -- ___ Python tracker

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: Could this be a permissions issue? I have no idea how permissions would effect it, though... r...@yonas-laptop:/usr/lib/exim4/local_scan# ls -la /usr/sbin/exim4 -rwsr-xr-x 1 root root 824440 2009-02-11 08:53 /usr/sbin/exim4 -- _

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: I didn't find anything unusual about how exim uses dlopen, but if you want to see the code, it's here: http://pastebin.com/m52398b30 Line 166 is the actual call. Again, no problems except with Python's Popen(). -- ___ Pyth

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: Thanks for testing, it works when running ./main, but not when run through exim. -- ___ Python tracker ___ __

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: your program works for me. How did you compile the files? I used the following commands: $ gcc -fPIC -I/usr/local/include/python2.6/ mylib.c -L /usr/local/lib -lpython2.6 --shared -o mylib.so $ gcc main.c -ldl $ ./a.out test (after removing all refere

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Yonas added the comment: The test doesn't fail when run directly from ./main, but it fails when run from exim4 mail server. exim will dlopen() mylib and run local_scan(). Besides using Popen, I haven't had any problems. -- Added file: http://bugs.python.org/file14094/exim_local_scan2

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The content of exim_local_scan2.py would be useful as well. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Changes by Yonas : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue6122] OSError: [Errno 10] No child processes

2009-05-27 Thread Yonas
Changes by Yonas : -- title: [Errno 10] No child processes -> OSError: [Errno 10] No child processes ___ Python tracker ___ ___ Python-