summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cpp/cpp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 14:11:23 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 14:11:23 +0100
commita609c1a2f8d58d21727c13970725445ce4d2f6fa (patch)
treefbfd17e46df3797aa6b290e8a55922a5ae811754 /sys/src/cmd/cpp/cpp.c
parent57741d473f9d5165d142b165bd837984f6428c66 (diff)
devproc: return process id when reading /proc/n/ctl file
allow reading the control file of a process and return its pid number. if the process has exited, return an error. this can be usefull as a way to test if a process is still alive. and also makes it behave similar to network protocol directories. another side effect is that processes who erroneously open the ctl file ORDWR would be allowed todo so as along as they have write permission and the process is not a kernel process.
Diffstat (limited to 'sys/src/cmd/cpp/cpp.c')
0 files changed, 0 insertions, 0 deletions