File: event

package info (click to toggle)
wmii 3.6%2Bdebian-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,316 kB
  • ctags: 1,522
  • sloc: ansic: 14,819; sh: 746; makefile: 265
file content (19 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/rc

wm=''
if(~ $1 -d) {
	wm = '&wm/wm wm/logon</dev/null'
	shift
}

inferno '{$home/wmii/test/event.dis $*'$wm'}' $* &
inf = $apid

. 9.rc

fn sigint sigterm {exit}
fn sigexit {/bin/kill $apid}

while(! ~ `{read </dev/tty} q)
	true