9front - general discussion about 9front
 help / color / mirror / Atom feed
* I fork-bombed my system
@ 2015-06-22 16:12 Ethan Grammatikidis
  2015-06-22 16:15 ` [9front] " Glauco Rocha
  0 siblings, 1 reply; 2+ messages in thread
From: Ethan Grammatikidis @ 2015-06-22 16:12 UTC (permalink / raw)
  To: 9front

The script below turned out to be a fork-bomb. The fix was simple, but
a little obscure. Anyone want to figure out what it was? :)

#!/bin/rc
fn midac {
	window -r 323 0 969 663 ac $*
}
if(~ $1 -@){
	window -r 0 0    	444 444   # top left
	window -r 848 0  	1292 444   # top right
	window -r 0 440  	648 884   # bottom left
	window -r 644 440	1292 884   # bottom right
	midac $home/games/CURRENT
	midac $home/src/00CURRENT
	exit
}
if(~ $1 '-#'){
	plumber
	exec rio -i $0^' -@'
}
exec w $0 '-#'


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-22 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 16:12 I fork-bombed my system Ethan Grammatikidis
2015-06-22 16:15 ` [9front] " Glauco Rocha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).