Suspending processes

Brian Thomson thomson at uthub.toronto.edu
Fri Jan 16 00:26:01 AEST 1987


In article <803 at maynard.BSW.COM> campbell at maynard.UUCP (Larry Campbell) writes:
>VENIX provides suspend(pid) and resume(pid) system calls, and 'suspend'
>and 'resume' commands.  They're so useful, and so obviously easy to
>implement, I wonder why they never got into System V or BSD.

I will supply the BSD:

suspend(pid)	{ kill(pid, SIGSTOP); }
resume(pid)	{ kill(pid, SIGCONT); }

and leave the SYSV exercise to the reader.
-- 
		    Brian Thomson,	    CSRI Univ. of Toronto
		    {linus,ihnp4,uw-beaver,floyd,utzoo}!utcsri!uthub!thomson



More information about the Comp.unix.questions mailing list