git: 9front

Download patch

ref: 839161c3f747d6535d0ae7d56d06c339a2ffd8ec
parent: ed77edce502fd1593381f7ce88b5f6442368ab57
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Oct 4 14:51:44 EDT 2019

sshfs: use threadexits() instead of exits()

--- a/sys/src/cmd/sshfs.c
+++ b/sys/src/cmd/sshfs.c
@@ -1343,7 +1343,7 @@
 	fprint(2, "usage: %s %s [-- ssh-options] [user@]host\n", argv0, common);
 	fprint(2, "       %s %s -c cmdline\n", argv0, common);
 	fprint(2, "       %s %s -p\n", argv0, common);
-	exits("usage");
+	threadexits("usage");
 }
 
 void
@@ -1415,5 +1415,5 @@
 	
 	threadpostmountsrv(&sshfssrv, svc, mtpt, MCREATE | mflag);
 
-	exits(nil);
+	threadexits(nil);
 }
--