Commits
- Commit:
52b599a63c488d3a80bb9f5dd97bad0b10103c54
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: call setpgrp in programs that will background
This fixes the 'run stats from rc; exit rc; stats dies' problem.
It's unclear whether this is the right fix or whether rc should
be starting all its interactive commands in their own process
groups. But at least it does fix stats dying.
- Commit:
3ccd61629b641613bcccbc51125330efab9c89a7
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: avoid out-of-bounds read in rterm
Usually r->nused < r->nalloc and the read is in bounds.
But it could in theory be right on the line and reading
past the end of the allocation.
Make it safe but preserve as much of the old semantics
as possible. This use of rterm appears to be only for
optimization purposes so the result does not matter
for correctness.
- Commit:
6a80119eb509bd948d87ad1b84b0a82855a3c691
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: remove backward ?:
The exit code here is ignored anyway.
- Commit:
c3ae85a004c8714fc653629a983327d9a15b36da
- From:
- Russ Cox <rsc@swtch.com>
- Date:
rc: do not exit on EINTR from read
This happens if lldb attaches to rc.
- Commit:
0cc1faf015a253ef64b97a8453b6fc959c0ee512
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: reject postnote with special pids
- Commit:
fdcf3d70c24886dddb5fd7052dfada67d33d5c75
- From:
- Russ Cox <rsc@swtch.com>
- Date:
auxstats: do not postnote 0
- Commit:
1c845e0bd5ff897dc5e90f2c24db4ecd81a8f60c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme, sam, samterm: remove weird switch usage
For whatever reason all three of these programs
contain switches like:
switch(x) {
case 1:
if(cond)
case 2:
f();
}
Like Duff's device, this is legal C but more obscure
than it really needs to be.
This commit assumes those are intended as written
and simply writes them more clearly. I did consider
that maybe they are mistakes, but in the case of sam/regexp.c,
my rewrite in this commit matches the acme/regx.c that
has been in plan9port since I added acme in 2003.
(I didn't bother to dig up the old Plan 9 releases.)
Assuming acme/regx.c has been correct for the past
two decades, this commit should be correct too.
- Commit:
0a513e65607223d11ba94003256b13ef5779e7e8
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: rm dregs
- Commit:
7f6458b045e04b97dd06b3171ac67e9ecde32429
- From:
- Russ Cox <rsc@swtch.com>
- Date:
stats: add threadmaybackground
- Commit:
ac487c754e009b0f3c01c2a8ad5bda2143da4a6b
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme: allow @ in file names
For upspin and other tools that put email addresses in names.
- Commit:
6c8e44dd2e3b346ad5e313830ef22ee7b0a9df04
- From:
- Jacob Vosmaer <contact@jacobvosmaer.nl>
- Via:
- GitHub <noreply@github.com>
- Date:
wintext: add to moveplan9.files (#470)
- Commit:
dbc153f51e2af8fabe43b0c408d27f2dd6b09925
- From:
- Russ Cox <rsc@swtch.com>
- Date:
9term: add threadmaybackground
- Commit:
f23783cbb197f71f867bd9d44abfa8787a65448b
- From:
- Russ Cox <rsc@swtch.com>
- Date:
.gitignore: add LOCAL.config and lib/fortunes.index
- Commit:
ee9b2a22996e29d55b97f7717163989173c71747
- From:
- Russ Cox <rsc@swtch.com>
- Date:
.gitignore: more binaries
- Commit:
91ececc99741b3111c69d455bc928e871b15d766
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: drop schedlock
Having two locks in the proc was causing deadlocks.