aboutsummaryrefslogtreecommitdiff
path: root/internal/worker.zsh
Commit message (Collapse)AuthorAgeFilesLines
* workaround for a bug in sysreadromkatv2020-02-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | There is a bug in sysread from zsh/system. It triggers in the following case: 1. zsh has been compiled with HAVE_SELECT and without HAVE_POLL. 2. sysread is called with timeout (-t). 3. the input file descriptor is valid but there is no data to read. 4. errno happens to be EINTR prior to the call to sysread. This results in an infinite loop in sysread: while ((ret = select(infd+1, (SELECT_ARG_2_T) &fds, NULL, NULL,&select_tv)) < 1) { if (errno != EINTR || errflag || retflag || breaks || contflag) break; } Here select() keeps returning 0, indicating timeout. This is not an error, so errno doesn't get set. If it was EINTR prior to the call, it stays EINTR, and the loop keeps spinning. As a workaround, powerlevel10k sets errno to ENOTTY (any value other than EINTR will do) prior to calling sysread with timeout.
* remove profiling instrumentationromkatv2020-02-031-6/+0
|
* bug fix: make reset=2 stickyromkatv2020-02-031-3/+4
|
* quote $foo when running with unknown options; fixes #453romkatv2020-02-021-2/+2
|
* fix prompt_char (never showed error); unify optionsromkatv2020-01-261-9/+3
|
* remove debugging junkromkatv2020-01-261-40/+0
|
* bug fix: declare worker global vars in _p9k_init_varsromkatv2020-01-261-7/+0
|
* process ready replies from worker synchornously in precmdromkatv2020-01-251-0/+2
|
* delete fifo before killing worker from watchdogromkatv2020-01-251-2/+6
|
* trap PIPEromkatv2020-01-251-10/+10
|
* migrate over from the old worker api; use worker in battery on macOSromkatv2020-01-251-118/+63
|
* use ascii ENQ (0x05) for watchdog pingsromkatv2020-01-251-6/+3
|
* add watchdog to workerromkatv2020-01-251-6/+14
|
* massive worker simplification (figure out during massive hangover)romkatv2020-01-241-101/+31
|
* synthesize common prompt functionsromkatv2020-01-211-8/+18
|
* refactor worker coderomkatv2020-01-201-51/+47
|
* work around wsl bugsromkatv2020-01-191-3/+5
|
* explicit exec in workerromkatv2020-01-191-2/+2
|
* load the same modules and functions in worker as in masterromkatv2020-01-191-1/+11
|
* even further simplify worker bootstrapromkatv2020-01-191-14/+17
|
* further simplify worker bootstrapromkatv2020-01-191-5/+6
|
* simplify worker bootstrapromkatv2020-01-191-47/+56
|
* migrate disk_usage and public_ip to workerromkatv2020-01-181-7/+31
|
* remove explicit timeout support from workerromkatv2020-01-181-77/+47
|
* support parallelism in workerromkatv2020-01-181-73/+141
|
* cleanupromkatv2020-01-171-0/+1
|
* cleanupromkatv2020-01-171-5/+5
|
* add worker.zshromkatv2020-01-171-0/+278