[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23808: Emacs 25 open-network-stream, make-network-process
From: |
Lars Ingebrigtsen |
Subject: |
bug#23808: Emacs 25 open-network-stream, make-network-process |
Date: |
Thu, 11 Aug 2016 12:42:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Paul Eggert <eggert@cs.ucla.edu> writes:
> This problem was introduced by the recent async changes (Bug#23808).
> * src/process.c (Fmake_process): Move USE_SAFE_ALLOCA later,
> so that it follows the start_process_unwind unwind-protect.
> Set pid to -1 while the process is being created.
> (start_process_unwind): Omit unnecessary emacs_abort test.
> (connect_network_socket): Simplify use of counts. Unwind
> bind_polling_period a bit earlier, so that a remove_process
> unwind-protect can be added when needed; this is the heart of
> the fix. Undo the unwind-protect just before returning.
Seems like the right fix to me, I think?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no