diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-18 03:13:50 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-18 03:13:50 +0200 |
commit | 58dc03cec0df3cf569f73ea90d71f17e6a3dc84d (patch) | |
tree | 89b5471097c59b358f82c1f7d1336ccaece19bc2 /sys/src/9/port/proc.c | |
parent | b48078c12cdf0e3b718e38102b7548c14bed33a4 (diff) |
kernel: do not inherit Proc.dot (current working directory) in kproc()
making sure to close the dot in every kproc appears repetitive,
so instead stop inheriting the dot in kproc() as this is usually
never what you wanted in the first place.
Diffstat (limited to 'sys/src/9/port/proc.c')
-rw-r--r-- | sys/src/9/port/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index 766ab52b9..eadca93ec 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -1387,7 +1387,7 @@ kproc(char *name, void (*func)(void *), void *arg) p->s = up->s; p->nerrlab = 0; p->slash = up->slash; - p->dot = up->dot; + p->dot = up->slash; /* unlike fork, do not inherit the dot for kprocs */ if(p->dot != nil) incref(p->dot); |