Date: Tue, 27 Nov 2001 11:56:28 -0800 (PST) From: Dima Dorfman <dd@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ddb db_command.c Message-ID: <200111271956.fARJuSd89015@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dd 2001/11/27 11:56:28 PST Modified files: sys/ddb db_command.c Log: Implement a "kill" DDB command which is an interface to psignal() that respects locks. Before SMPng, one was able to call psignal() using the "call" command, but this is no longer possible because it does not respect locks by itself. This is very useful when one has gotten their machine into a state where it is impossible to spawn ps/kill or su to root. In this case, respecting locks essentially means trying to aquire the proc lock before calling psignal(). We can't block in the debugger, so if trylock fails, the operation fails. This also means that we can't use pfind(), since that will attempt to lock the process for us. Reviewed by: jhb Revision Changes Path 1.41 +59 -0 src/sys/ddb/db_command.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111271956.fARJuSd89015>