diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-18 01:07:06 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-18 01:07:06 +0200 |
commit | 34cd9dc4c462ab01ce063a58a40f1317fcb13172 (patch) | |
tree | 9412be7121d64860b8169f8c4be2a998b628280f /sys/src/9/port/portdat.h | |
parent | 8a7a6f778dec447480683186dcc43c7e406e7465 (diff) |
kernel: reset up->setargs on sysexec(), fix race with devproc
up->setargs wasnt reset in sysexec(). also, up->args should only
be exchanged/freed under up->debug qlock. otherwise double free
could happen.
Diffstat (limited to 'sys/src/9/port/portdat.h')
-rw-r--r-- | sys/src/9/port/portdat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 7ead18a00..84545077b 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -737,7 +737,7 @@ struct Proc ulong qpc; /* pc calling last blocking qlock */ QLock *eql; /* interruptable eqlock */ - int setargs; + int setargs; /* process changed its args */ void *ureg; /* User registers for notes */ void *dbgreg; /* User registers for devproc */ |