BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Linux Users Corner (http://www.blackberryforums.com/forumdisplay.php?f=83)
-   -   Linux Query (http://www.blackberryforums.com/showthread.php?t=179728)

Gracey 03-06-2009 04:41 AM

Linux Query
 
Hello,
I was wondering how i catch various signals in nix python so i can exit my programs gracefully? Please reply my post if you know the answer.

Thanks

Webby Alisha 03-30-2009 01:00 AM

Quote:

Originally Posted by Gracey (Post 1309738)
Hello,
I was wondering how i catch various signals in nix python so i can exit my programs gracefully? Please reply my post if you know the answer.

Thanks

Simply "import signal", and see document ion of that module. But bear in mind that signals are weird with Python. The atomic unit of Python execution can span a C external function call, and that can take an indefinitely long time. So delivery of signals at the Python level can be delayed.


All times are GMT -5. The time now is 04:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.