[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
Cygwin:
--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;
exit(0);
} 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.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Hang on Cygwin,
Achim Gratz <=