[cmake-developers] CMake execute_process/signal_handler on Unix

Yordanov, Dimitar dimitar.yordanov at sap.com
Fri Jun 3 11:13:06 EDT 2016


Hi Brad,

thanks for pointing me to the report. I should have searched myself:)
The POSIX alternative to the self pipe trick is using a pselect
In [1] is an article on LWN about it.

Best
Dimitar

1 - https://lwn.net/Articles/176911/

* Brad King <brad.king at kitware.com> [16-06-03 17:00 CEST]:
> On 06/03/2016 02:05 AM, Yordanov, Dimitar wrote:
> >> Are you running inside some kind of virtualization or emulation
> >> environment?
> > 
> > Actually not. The server is maybe under heavy load, but should it
> > matter?
> 
> See discussion here:
> 
>   https://cmake.org/Bug/view.php?id=15873
> 
> > Possibly I'm on the wrong track, but couldn't the compiler reorder the
> > code where kwsysProcess is set, and move it out of the blocked
> > section? Should it be volatile to avoid such scenario?
> 
> I think further investigation/debugging would be needed to answer that.
> 
> > I thought (void)write(...); is a portable way to say that we are not
> > interested in the return value. Not that I would change running code
> > for that.
> 
> I think we used to have that and some compilers warned anyway.
> 
> -Brad
> 


More information about the cmake-developers mailing list