[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

Jesús Cea Avión report at bugs.python.org
Sun Nov 25 03:07:37 CET 2012


Jesús Cea Avión added the comment:

If Unix system call "system()" fails, it will return -1. Python should convert a -1 to the appropiate exception, checking "errno".

In Solaris, for instance, "system()" is documented to fail if the max number of processes are reached, if the syscall was interrupted or if the OS doesn't have enough memory.

Currently, python "os.system()" will signal an error returning "-1", instead of raising an exception.

Python 2.6 is open only for security fixes, retargetting 2.7, 3.2, 3.3 and 3.4.

Opinions?

----------
nosy: +jcea
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16548>
_______________________________________


More information about the Python-bugs-list mailing list