LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-30-2010, 07:27 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
can not kill mbusd process and can not run it again


Hello
I have a big problem with one of my processes named "mbusd" ;it is an opensource modbus RTU/TCP gateway when I plug USB to serial convertor to it my laptop without this process linux makes virtual ttyUSB very fine and when I unplug it it removes except some times (SOME TIMES not all the times) that I run mbusd process to work with, at that time during mbusd process work when I unplug USB/serial converter the virtual ttyUSB does not disappear and mbusd does not exit too and it turnes in something like this when I get ps -aux: mbusd [defunc] at this time I can not even kill it with -9 or -15 signals and pluging back the converter does not solve the problem too and mbusd does not exit or start to run again. the only way to scape from this situation I found is to restarting the system that is an terrible solution. what can I do to solve this.

Thanks a lot.
 
Old 10-30-2010, 09:54 PM   #2
PehJota
Member
 
Registered: Aug 2010
Distribution: Desktop and netbook: Debian Squeeze; Router: DD-WRT
Posts: 43

Rep: Reputation: 5
Quote:
Originally Posted by golden_boy615 View Post
ps -aux: mbusd [defunc] at this time I can not even kill it with -9 or -15 signals
A defunct (a.k.a. zombie) process is one that has exited (and thus cannot be killed, as it is already "dead") but still has an entry in the process table to allow the parent process to retrieve its exit status. The parent has not checked on ("wait"ed for) the child process, so the child's status and id remain in the process table. Normally this isn't a problem, but in your case it sounds like this improper signal handling is also leaving some cleanup undone, and new instances of mbusd won't run with old instances in the process table.

I'm not familiar with this software, so I don't know what the parent process is or why it's not responding properly to SIGCHLD. You may want to report this as a bug.
 
1 members found this post helpful.
Old 11-02-2010, 02:47 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
hello
thank you for your reply
so how can I clean it from process table ? I checked it and I saw it's parent process is init. how can I clean a zombie process from my process list. I want to write a watchdog for this process that if it terminated I could start it again but as it does not leave process table I can not check this situation.
 
Old 11-02-2010, 02:58 AM   #4
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
I found some thing else:
root 1620 32.9 0.0 0 0 ? Ds Oct19 6676:21 [mbusd]
that Ds stand for :
D Uninterruptible sleep (usually IO)
s is a session leader
I found that it is wainting for an I/O. BUT I unpluged the mod bus serial/USB converter and as I checked there is it's virtual tty:
ls /dev/ttyUSB*
/dev/ttyUSB0
how can I free it's I/O, if I could do it I think it will exit by itself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
why we cannot kill process id 1 with command "kill -9 1" satyaredhat Linux - Newbie 7 03-11-2009 12:48 PM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:43 PM.

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
Open Source Consulting | Domain Registration