The scprotect utility is used for set or onset P_PROTECTED on running process Actually, scprotect uses syscall, implemented in module scprotect.ko. It's work like madvise(2) system call with MADV_PROTECT behaviour. Exeption is that madvise(2) can be used only by process itself, not from extertnal applications. It informs the VM system this process should not be killed when the swap space is exhausted. The process must have superuser privileges. This should be used for processes that must remain running for the system to properly function. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-ports-bugs->amdmi3 I'll take it.
State Changed From-To: open->closed New port added, with minor changes. Thanks!
amdmi3 2009-02-10 23:15:03 UTC FreeBSD ports repository Modified files: sysutils Makefile Added files: sysutils/scprotect Makefile distinfo pkg-descr pkg-message pkg-plist Log: scprotect is implementation of system call for setting or unsetting P_PROTECTED flag. It's similar to madvise(2) behaviour MADV_PROTECT, but may be used for already running processes. Also rc.d/scprotect scripts allow you to set protection flag even if process was restarted by user. WWW: http://dindin.ru/scprotect/ PR: 131423 Submitted by: Denis Barov <dindin at dindin dot ru> Revision Changes Path 1.1077 +1 -0 ports/sysutils/Makefile 1.1 +36 -0 ports/sysutils/scprotect/Makefile (new) 1.1 +3 -0 ports/sysutils/scprotect/distinfo (new) 1.1 +7 -0 ports/sysutils/scprotect/pkg-descr (new) 1.1 +13 -0 ports/sysutils/scprotect/pkg-message (new) 1.1 +5 -0 ports/sysutils/scprotect/pkg-plist (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"