Search Results

Search: Posts Made By: pooyair
Forum: Programming 10-13-2012
7,893
Posted By jim mcnamara
You cannot debug kernel code from gdb. You have...
You cannot debug kernel code from gdb. You have to use a kernel debugger.

I would suggest that you are probably corrupting the kernel with repeated segfaults.

You probably are not aware, but...
Forum: Programming 09-14-2012
1,356
Posted By Corona688
There are many reasons it could be returning...
There are many reasons it could be returning NULL, for instance, if it was never set in the first place, or used before the main thread managed to set it (race condition), or the main thread had a...
Forum: Programming 09-13-2012
4,627
Posted By jim mcnamara
The only possibility I see for a problem on that...
The only possibility I see for a problem on that line is:
the pthread_mutex_t *mutex pointer variable is probably NULL or has been subject to arithmetic change (++ or --), which usually called an...
5,333
Posted By alister
I have no experience with busybox (that I'm aware...
I have no experience with busybox (that I'm aware of) and haven't used linux very much during the past few years. That said, I think you may be overestimating the memory impact of running sleep.
...
5,333
Posted By rbatte1
As an alternate to sleep, have you considered...
As an alternate to sleep, have you considered using ping? Read the man page appropriate to your OS and define it to ping the local host twice. This usually takes one second, but do check it. ...
2,611
Posted By radoulov
You could do even better. When you start the...
You could do even better. When you start the process with /var/bin/pooya_start.sh start &, you could save the pid of the process:

echo $! > /tmp/pooya.pidAt the next iteration, you could simply...
2,611
Posted By radoulov
OK, change: pgrep pooya > /dev/nullto ...
OK,
change:

pgrep pooya > /dev/nullto

ps -ef | grep '[p]ooya' > /dev/null
2,611
Posted By radoulov
I don't know what's Sh4, but if: pgrep...
I don't know what's Sh4, but if:

pgrep pooyaor

pgrep -f pooyareturn the correct pid, you could try something like this:

while sleep 10; do
pgrep pooya > /dev/null || {
echo `date` R...
2,611
Posted By radoulov
Which OS and shell are you using?
Which OS and shell are you using?
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 01:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy