LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Rate this Entry

restart process if killed improperly

Posted 06-27-2013 at 11:00 AM by sumeet inani

Hi , i am using qbittorrent in fedora 17
It frequently happens that
Code:
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
qBittorrent version: v3.0.9
stack trace:
[4]+  Segmentation fault      (core dumped) qbittorrent  (wd: ~/sumeet)
So I ran this script which works well
Code:
until qbittorrent; do
    echo "Server 'qbittorrent' crashed with exit code $?.  Respawning.." >&2
	echo kill time date is $(date)
    sleep 10
done
When I ran 'kill -9 PID-of-qbittorrent'
Then the process respawned which is desired.
But when I ran 'kill PID-of-qbittorrent' which is polite way to close application (read from http://www.gnu.org/software/libc/man...n-Signals.html)
I have seen this process get aborted by signals SIGSEGV(6) , SIGABRT(11).
This is fun.
Posted in Uncategorized
Views 346 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration