tMore consistent use of _exits and exits in place of _exit and exit. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 73bef9b76b528d3fe92d7ab28d9b81b10e68b1fd
(DIR) parent bf00efba2df4172c1d60e51eb9f0c2af0f9f22c6
(HTM) Author: rsc <devnull@localhost>
Date: Wed, 11 Aug 2004 01:56:35 +0000
More consistent use of _exits and exits
in place of _exit and exit.
Diffstat:
M src/libthread/exit.c | 2 +-
M src/libthread/main.c | 4 ++--
M src/libthread/sched.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/src/libthread/exit.c b/src/libthread/exit.c
t@@ -61,7 +61,7 @@ threadexitsall(char *exitstr)
}
/* leave */
- exit(0);
+ exits(0);
}
Channel*
(DIR) diff --git a/src/libthread/main.c b/src/libthread/main.c
t@@ -29,7 +29,7 @@ _threaddie(int x)
USED(x);
if(_threadexitsallstatus)
- _exit(_threadexitsallstatus[0] ? 1 : 0);
+ _exits(_threadexitsallstatus);
}
int
t@@ -109,7 +109,7 @@ _schedexit(Proc *p)
strncpy(ex, p->exitstr, sizeof ex);
ex[sizeof ex-1] = '\0';
free(p);
- _exit(ex[0]);
+ _exits(ex);
}
int
(DIR) diff --git a/src/libthread/sched.c b/src/libthread/sched.c
t@@ -38,7 +38,7 @@ _schedinit(void *arg)
;
_threaddebug(DBGSCHED, "top of schedinit, _threadexitsallstatus=%p", _threadexitsallstatus);
if(_threadexitsallstatus)
- exits(_threadexitsallstatus);
+ _exits(_threadexitsallstatus);
lock(&p->lock);
if((t=p->thread) != nil){
p->thread = nil;
t@@ -149,7 +149,7 @@ relock:
unlock(&p->readylock);
while(rendezvous((ulong)q, 0) == ~0){
if(_threadexitsallstatus)
- exits(_threadexitsallstatus);
+ _exits(_threadexitsallstatus);
}
/* lock picked up from _threadready */
}
t@@ -249,7 +249,7 @@ _threadready(Thread *t)
_threaddebug(DBGSCHED, "waking process %d", t->proc->pid);
while(rendezvous((ulong)q, 0) == ~0){
if(_threadexitsallstatus)
- exits(_threadexitsallstatus);
+ _exits(_threadexitsallstatus);
}
}else
unlock(&t->proc->readylock);