mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
TS-29: tasksh hangs trying to read task from stdin
- Thanks to ilove zfs.
This commit is contained in:
parent
870881a61c
commit
cc357231b3
3 changed files with 10 additions and 3 deletions
1
AUTHORS
1
AUTHORS
|
@ -8,6 +8,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
||||||
|
|
||||||
Jörg Krause
|
Jörg Krause
|
||||||
Ben Boeckel
|
Ben Boeckel
|
||||||
|
ilove zfs
|
||||||
|
|
||||||
Thanks to the following, who submitted detailed bug reports and excellent
|
Thanks to the following, who submitted detailed bug reports and excellent
|
||||||
suggestions:
|
suggestions:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
1,2,0 () -
|
1.2.0 () -
|
||||||
|
|
||||||
-
|
- TS-29 tasksh hangs trying to read task from stdin
|
||||||
|
(thanks to ilove zfs).
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <shared.h>
|
#include <shared.h>
|
||||||
|
|
||||||
#ifdef HAVE_READLINE
|
#ifdef HAVE_READLINE
|
||||||
|
@ -125,6 +126,8 @@ static int commandLoop (bool autoClear)
|
||||||
// cause the shell to terminate.
|
// cause the shell to terminate.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
status = 1;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -155,7 +158,9 @@ int main (int argc, const char** argv)
|
||||||
output == "yes\n" ||
|
output == "yes\n" ||
|
||||||
output == "on\n");
|
output == "on\n");
|
||||||
|
|
||||||
welcome ();
|
if (isatty (fileno (stdin)))
|
||||||
|
welcome ();
|
||||||
|
|
||||||
while ((status = commandLoop (autoClear)) == 0)
|
while ((status = commandLoop (autoClear)) == 0)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue