PDA

View Full Version : State swait is = to sbwait?


klabacita
April 7th, 2009, 08:01
Hi people.

I have some process that time to time they appear in "sbwait" state, reading man top:

NOTES
The "ABANDONED" state (known in the kernel as "SWAIT") was abandoned, thus the name. A process should never end up in this state.

We are speaking about the same term? or is different meaning?

FreeBSD 7.0-p6 i386, thanks for your time!!!

Maledictus
April 7th, 2009, 09:02
http://fxr.watson.org/fxr/source/kern/uipc_sockbuf.c?im=bigexcerpts#L124

It's waiting on a socket.

klabacita
April 8th, 2009, 02:15
Them we are speaking about the same meaning, I have to find why some daemons get into that state.

Thanks Maledictus for your info.

Djn
April 8th, 2009, 03:42
No - sbwait is a perfectly normal, legal, state. Daemons get into it because they're waiting for anything to happen on the socket(s) they are listening to.