BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Linux Users Corner (http://www.blackberryforums.com/linux-users-corner/)
-   -   Linux Query (http://www.blackberryforums.com/linux-users-corner/179728-linux-query.html)

Gracey 03-06-2009 03: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 05:25 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.