changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: sshfs: use threadexits() instead of exits()

changeset 7406: 2d4a24309bdc
parent 7405: 82225c0fc1a2
child 7407: c5e95e4f1f7b
author: cinap_lenrek@felloff.net
date: Fri, 04 Oct 2019 18:51:44 +0200
files: sys/src/cmd/sshfs.c
description: sshfs: use threadexits() instead of exits()
     1.1--- a/sys/src/cmd/sshfs.c
     1.2+++ b/sys/src/cmd/sshfs.c
     1.3@@ -1343,7 +1343,7 @@ usage(void)
     1.4 	fprint(2, "usage: %s %s [-- ssh-options] [user@]host\n", argv0, common);
     1.5 	fprint(2, "       %s %s -c cmdline\n", argv0, common);
     1.6 	fprint(2, "       %s %s -p\n", argv0, common);
     1.7-	exits("usage");
     1.8+	threadexits("usage");
     1.9 }
    1.10 
    1.11 void
    1.12@@ -1415,5 +1415,5 @@ threadmain(int argc, char **argv)
    1.13 	
    1.14 	threadpostmountsrv(&sshfssrv, svc, mtpt, MCREATE | mflag);
    1.15 
    1.16-	exits(nil);
    1.17+	threadexits(nil);
    1.18 }