summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgets.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-02 17:26:51 +0000
committerjhb <jhb@FreeBSD.org>2001-04-02 17:26:51 +0000
commit2e3a4ffcee03a55b85ab104db861c78a3fe27cef (patch)
treeabe94a4bf35122e8fe5e99287ccd81886102fb5f /lib/libc/stdio/fgets.c
parent9d59e42849fe42a5ad0c38397977b75aff23d134 (diff)
downloadFreeBSD-src-2e3a4ffcee03a55b85ab104db861c78a3fe27cef.zip
FreeBSD-src-2e3a4ffcee03a55b85ab104db861c78a3fe27cef.tar.gz
- Move the second stop() of process 'p' in issignal() to be after we send
SIGCHLD to our parent process. Otherwise, we could block while obtaining the process lock for our parent process and switch out while we were in SSTOP. Even worse, when we try to resume from the mutex being blocked on our p_stat will be SRUN, not SSTOP. - Fix a comment above stop() to indicate that it requires that the proc lock be held, not a proctree lock. Reported by: markm Sleuthing by: jake
Diffstat (limited to 'lib/libc/stdio/fgets.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud