process changes
commit6c0d5ae50789673f53c834084bbe1f62f5a62731
authorTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 19:19:24 +0000 (15 13:19 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 19:19:24 +0000 (15 13:19 -0600)
tree0f976b74b292b2a4714470eebb2ce39548d47678
parentaa14ccd1e2edec2735f9200a4f2e5eee3b0abe09
process changes

This changes wait_reading_process_output to handle threads better.  It
introduces a wrapper for select that releases the global lock, and it
ensures that only a single thread can select a given file descriptor
at a time.

This also adds the thread-locking feature to processes.  By default a
process can only have its output accepted by the thread that created
it.  This can be changed using set-process-thread.  (If the thread
exits, the process is again available for waiting by any thread.)

Note that thread-signal will not currently interrupt a thread blocked
on select.  I'll fix this later.
src/process.c
src/process.h
src/thread.c
src/thread.h