Little fixes.
This commit is contained in:
parent
be36ff6885
commit
b1455f33a8
10 changed files with 68 additions and 15 deletions
|
|
@ -121,18 +121,24 @@ threadmain(int argc, char **argv)
|
|||
case 'd':
|
||||
debug = 1;
|
||||
break;
|
||||
case 'n':
|
||||
name = EARGF(usage());
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
}ARGEND
|
||||
|
||||
prog = argv;
|
||||
|
||||
if(argc > 0){
|
||||
name = argv[0];
|
||||
argc--;
|
||||
argv++;
|
||||
}else
|
||||
name = "gnot";
|
||||
if(name == nil){
|
||||
if(argc > 0)
|
||||
name = argv[0];
|
||||
else{
|
||||
name = sysname();
|
||||
if(name == nil)
|
||||
name = "gnot";
|
||||
}
|
||||
}
|
||||
|
||||
threadnotify(nopipes, 1);
|
||||
if((fs = nsmount("acme", "")) == 0)
|
||||
|
|
|
|||
|
|
@ -38,6 +38,9 @@ main(int argc, char **argv)
|
|||
case 'c':
|
||||
stdout++;
|
||||
break;
|
||||
case 'f':
|
||||
/* force */
|
||||
break;
|
||||
case 'd':
|
||||
/*
|
||||
* gnu tar expects bzip2 -d to decompress
|
||||
|
|
|
|||
|
|
@ -1934,9 +1934,9 @@ void doevent(void)
|
|||
if (mobile) {
|
||||
mvtime = ev.mouse.msec + Mv_delay;
|
||||
prepare_mv(cur_sel.fp);
|
||||
if (!lift_button(1, &ev.mouse, mvtime))
|
||||
save_mv(do_move(1, &ev.mouse));
|
||||
}
|
||||
if (!lift_button(1, &ev.mouse, mvtime) && mobile)
|
||||
save_mv(do_move(1, &ev.mouse));
|
||||
} else if (ev.mouse.buttons & But2)
|
||||
do_emenu(2, &ev.mouse);
|
||||
else if (ev.mouse.buttons & But3)
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ main(int argc, char *argv[])
|
|||
exec("gunzip", oargv);
|
||||
sysfatal("exec gunzip failed");
|
||||
break;
|
||||
case 'f':
|
||||
/* force */
|
||||
break;
|
||||
case 'v':
|
||||
verbose++;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ struct thread{
|
|||
int iflag; /* interactive? */
|
||||
int lineno; /* linenumber */
|
||||
int pid; /* process for Xpipewait to wait for */
|
||||
int done; /* have we seen a wait message for this process? */
|
||||
char status[NSTATUS]; /* status for Xpipewait */
|
||||
tree *treenodes; /* tree nodes created by this process */
|
||||
thread *ret; /* who continues when this finishes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue