[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hang on Cygwin

From: Achim Gratz
Subject: Hang on Cygwin
Date: Fri, 19 May 2017 20:13:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

The following change (hidden in commit 426ea9b37283) breaks parallel on

--8<---------------cut here---------------start------------->8---
@@ -5485,7 +5485,8 @@ sub compute_number_of_processes {
            # The child takes one process slot
            # It will be killed later
            $SIG{'TERM'} = $Global::original_sig{'TERM'};
-            sleep 10101010;
+           # 'exec sleep' takes less RAM than sleeping in perl
+           exec 'sleep', 10101;
        } else {
            # Failed to spawn
--8<---------------cut here---------------end--------------->8---

The symptom is that the process doing the exec plus the just execed
sleep (still shown as a child of perl) hang indefinitely until the
process gets HUPed or KILLed.  I have not yet been able to figure out
exactly why this happens, a simple script doing the exec into sleep
works as expected, it might have to do with custom signal handlers.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]