]> git.lizzy.rs Git - plan9front.git/commitdiff
wpa: fork note group when going to background (thanks jpm)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 2 Nov 2014 16:23:10 +0000 (17:23 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 2 Nov 2014 16:23:10 +0000 (17:23 +0100)
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.

sys/src/cmd/aux/wpa.c

index 4c532e523c0b3536a2e71219d85a1d98653f97e0..e795c050b75a1baeb05f96dbe61bfb68a09b0e5a 100644 (file)
@@ -648,7 +648,7 @@ Connect:
        if(!background){
                background = 1;
                if(!debug){
-                       switch(rfork(RFFDG|RFREND|RFPROC|RFNOWAIT)){
+                       switch(rfork(RFNOTEG|RFREND|RFPROC|RFNOWAIT)){
                        default:
                                exits(nil);
                        case -1: