Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0123/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Clean up killbig.
 [rsc] --rw-rw-r-- M 1118886 glenda sys 27967 Jan 23 09:58 sys/src/9/port/proc.c
	[diffs elided]
 [rsc] --rw-rw-r-- M 1118886 glenda sys 7019 Jan 23 09:58 sys/src/9/port/swap.c
	/n/sourcesdump/2006/0123/plan9/sys/src/9/port/swap.c:160,172 - 
	/n/sourcesdump/2006/0124/plan9/sys/src/9/port/swap.c:160,172
	  			qunlock(&p->seglock);
	  		}
	  		else {
	+ 			print("out of physical memory; no swap configured\n");
	  			if(!cpuserver)
	  				freebroken();	/* can use the memory */
	  			else
	- 				killbig();
	+ 				killbig("out of memory");
	  
	  			/* Emulate the old system if no swap channel */
	- 			print("no physical memory\n");
	  			tsleep(&up->sleep, return0, 0, 5000);
	  			wakeup(&palloc.r);
	  		}
 [rsc] --rw-rw-r-- M 1118886 glenda sys 23013 Jan 23 15:22 sys/src/9/port/devcons.c
	/n/sourcesdump/2006/0123/plan9/sys/src/9/port/devcons.c:460,466 - 
	/n/sourcesdump/2006/0124/plan9/sys/src/9/port/devcons.c:460,466
	  			scheddump();
	  			return;
	  		case 'k':
	- 			killbig();
	+ 			killbig("^t ^t k");
	  			return;
	  		case 'r':
	  			exit(0);
 [rsc] --rw-rw-r-- M 1118886 glenda sys 11023 Jan 23 15:23 sys/src/9/port/portfns.h
	/n/sourcesdump/2006/0123/plan9/sys/src/9/port/portfns.h:144,150 - 
	/n/sourcesdump/2006/0124/plan9/sys/src/9/port/portfns.h:144,150
	  int		kbdputc(Queue*, int);
	  void		kbdputmap(ushort, ushort, Rune);
	  void		kickpager(void);
	- void		killbig(void);
	+ void		killbig(char*);
	  void		kproc(char*, void(*)(void*), void*);
	  void		kprocchild(Proc*, void (*)(void*), void*);
	  void		(*kproftimer)(ulong);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].