diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 375c9010ba8..b2810444137 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5138,11 +5138,15 @@ server_accept_connection (Lisp_Object server, int channel) | |||
| 5138 | /* If the server process is locked to this thread, lock the client | 5138 | /* If the server process is locked to this thread, lock the client |
| 5139 | process to the same thread, otherwise clear the thread of its I/O | 5139 | process to the same thread, otherwise clear the thread of its I/O |
| 5140 | descriptors. */ | 5140 | descriptors. */ |
| 5141 | eassert (!fd_callback_info[p->infd].thread); | ||
| 5142 | if (NILP (ps->thread)) | 5141 | if (NILP (ps->thread)) |
| 5143 | set_proc_thread (p, NULL); | 5142 | { |
| 5143 | eassert (!fd_callback_info[p->infd].thread); | ||
| 5144 | set_proc_thread (p, NULL); | ||
| 5145 | } | ||
| 5144 | else | 5146 | else |
| 5145 | { | 5147 | { |
| 5148 | eassert (!fd_callback_info[p->infd].thread | ||
| 5149 | || fd_callback_info[p->infd].thread == XTHREAD (ps->thread)); | ||
| 5146 | eassert (XTHREAD (ps->thread) == current_thread); | 5150 | eassert (XTHREAD (ps->thread) == current_thread); |
| 5147 | set_proc_thread (p, XTHREAD (ps->thread)); | 5151 | set_proc_thread (p, XTHREAD (ps->thread)); |
| 5148 | } | 5152 | } |