shithub: riscv

Download patch

ref: 9ac3a0c39e9fc3b0782f10c05fe19b9739ec50bd
parent: bb95002c2d47ab00764a183c200c7fd9ecb3c12a
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: