git: 9front

Download patch

ref: 34f5d070c659e1eb98957fcf1577da573efe21f8
parent: cc459f28a0a58c4ddf38b7025608ce7268118207
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 2 12:23:10 EST 2014

wpa: fork note group when going to background (thanks jpm)

bug: as jpm pointed out, when we run aux/wpa in rio window
and delete the window, aux/wpa was killed as it shared the
note group of the window.

fix: fork the notegroup.

--- a/sys/src/cmd/aux/wpa.c
+++ b/sys/src/cmd/aux/wpa.c
@@ -648,7 +648,7 @@
 	if(!background){
 		background = 1;
 		if(!debug){
-			switch(rfork(RFFDG|RFREND|RFPROC|RFNOWAIT)){
+			switch(rfork(RFNOTEG|RFREND|RFPROC|RFNOWAIT)){
 			default:
 				exits(nil);
 			case -1:
--