On 07/28/2011 04:10 AM, Ritesh Raj Sarraf wrote: > On 07/28/2011 02:57 AM, Eric Belanger wrote: >> > That would work but I'm not sure if the shell will interpret the return >> > value as being for the script rather than for the function itself. How >> > about replacing 'return 0' by 'exit 0' ? That seems to be better suited >> > for the situation as we are exiting the script at that point. And it is >> > accepted by bash. > Great. Thanks. I'll test it out I think I'll go with exit 0. Line #1089 in 1.58 laptop-mode script already did exit 0 gracefully. We already log/print error message if any, so we don't worry about the final exit code. It just got ignored now because of the polling fix I did. I need to add locking for the polling code also.
For now, please use exit 0 and report back if it causes any other problems. -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System
signature.asc
Description: OpenPGP digital signature