[LTP] [PATCH v4 0/4] mmapstress01: refactor to ltp framework

Edward Liaw edliaw@google.com
Wed Oct 12 21:13:34 CEST 2022


Hi Cyril,
I sent a v5 with changes based on your comments.


> * I'm failing to see why we need to block SIGALRM just before alarm(0)
>   as far as I can tell it's completely useless. Also blocking signals
>   while we refork looks questionable.
>

Is the reason it's blocking signals while reforking is due to the second
choice in https://man7.org/linux/man-pages/man7/signal-safety.7.html?  I'm
not familiar with signal handling.
```
Block signal delivery in the main program when calling
functions that are unsafe or operating on global data that is
also accessed by the signal handler.
```

Thanks,
Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20221012/67c913b0/attachment.htm>


More information about the ltp mailing list