From: Kristo <kristo.ilmari@gmail.com>
To: 9front <9front@9front.org>
Subject: [9front] [PATCH] nusbrc: remove service files left by nusb/kb
Date: Sun, 11 Dec 2022 17:41:34 +0200 [thread overview]
Message-ID: <CAAJ3RaPyVLU3dHebqfCQsVXvERUb+8aU4=LHWS67nvo9nWYHHg@mail.gmail.com> (raw)
Unplugging and then reattaching a keyboard or a mouse causes nusb/kb to
sysfatal() since the service file it's trying to create already exists.
diff 2d0ede468ddd363243fd31580e3e86c39b51f7be uncommitted
--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -66,7 +66,7 @@
}
fn detach {
devs='#σc/sdU'^($1 $5)
- rm -rf '#σc/usb/'^$1.* '#σc/usbnet/'^$1.* $devs $devs.*
+ rm -rf '#σc/usb/'^$1.* '#σc/usb/'^$5.hid '#σc/usbnet/'^$1.* $devs $devs.*
}
rc < '#σ/usb/usbevent' &
}
next reply other threads:[~2022-12-11 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-11 15:41 Kristo [this message]
2022-12-11 19:46 ` cinap_lenrek
2022-12-11 19:48 ` mkf9
2022-12-12 1:09 ` cinap_lenrek
2022-12-12 1:15 ` Sigrid Solveig Haflínudóttir
2022-12-11 19:49 ` cinap_lenrek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAJ3RaPyVLU3dHebqfCQsVXvERUb+8aU4=LHWS67nvo9nWYHHg@mail.gmail.com' \
--to=kristo.ilmari@gmail.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).