Python os.EX_OSERR Constant
Example
Exit code if any operating system error is detected:
#Import os Library
import os
# Exit code
os._exit(os.EX_OSERR)
Try it Yourself »
Definition and Usage
The os.EX_OSERR
exit code represents that an operating system error was detected like pipe or fork was not created.
Note: Available only on UNIX platforms.
Syntax
os.EX_OSERR
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |