Prevent demon form being killed, when device goes to SLEEP

by P@AR » Wed, 16 Feb 2011 02:09:39 GMT


Sponsored Links
 Hello, I need help over here!
Hi I am developing a Linux application(deamon) written in C, for my
Android device.
I have configured my init.rc script to start the deamon when the
device is booted.
Everything works just fine when the device is booted and my demon
starts, but when the device "sleeps"(after ~30seconds)
it kills my deamon application. Do you have any Idea how to prevent my
deamon from being "killed"?
I want to make my deamon to be active all the time, just like other
processes (adb, init, .... etc)
Any idea, suggestion would help ???

-- 



Re: Prevent demon form being killed, when device goes to SLEEP

by raja pavan » Wed, 16 Feb 2011 12:53:28 GMT


 "Killed" , lowmemorykiller has the power to kill processes, so lmk cuold be
behind this.

write /proc/1/oom_adj -16
This will prevent the lowmemorykiller driver from killing your process (if
lmk happens to be the reason)
Please let me know the result.







-- 


Sponsored Links


Re: Prevent demon form being killed, when device goes to SLEEP

by P@AR » Mon, 21 Feb 2011 02:49:21 GMT


 Thanks for your reply.
Tomorrow I'll check if the lmk is the problem
I'll update you as soon as I have the results

BR





-- 



Other Threads

1. how to get source for videoplayer........

my program is executing................
but i don't know how to give input source to the videoplayer..
pls help me..

-- 

2. XML Parsing is Slow

Hi,

I like to parse a XML file in android.
It is taking too much time to parse a xml in android.
what is the reason?..
It is taking more than 5 minutes also to parse a file.

The same thing will continue in phone?...

Any one know baout this?..

Thanks in advance..

-- 
Thanks & Regards
Sasikumar.S

-- 

3. Camera Callbacks & Activitys

4. Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

5. How does Email app switch its 'main' activity

6. Getting contact name from phone number in 1.5/1.6/2.0

7. ListView not responding to Click or KeyPress