Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
build(Makefile): limit duration of test runs
Merged liw opened 8 months ago

Sometimes I accidentally make a test that never finishes and uses all the CPU and memory available. Killing that manually can be impossible, because switching focus to the right terminal requires more CPU and memory than the kernel can spare.

Signed-off-by: Lars Wirzenius liw@liw.fi

fix: make reading child output not block forever, if there is none

Spawn a thread that sleeps until timeout, then notifies the RealtimeLines condition variable, which wakes up the reader thread and lets it eventually finish.

Signed-off-by: Lars Wirzenius liw@liw.fi

liw opened with revision 931291ad on base ac9261bb +46 -8 8 months ago

Sometimes I accidentally make a test that never finishes and uses all the CPU and memory available. Killing that manually can be impossible, because switching focus to the right terminal requires more CPU and memory than the kernel can spare.

Signed-off-by: Lars Wirzenius liw@liw.fi

fix: make reading child output not block forever, if there is none

Spawn a thread that sleeps until timeout, then notifies the RealtimeLines condition variable, which wakes up the reader thread and lets it eventually finish.

Signed-off-by: Lars Wirzenius liw@liw.fi

liw merged revision 931291ad at b3898f65 8 months ago