Commit ba61f946 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: set SA_RESTART for SIGIO in file_fown

Otherwise waitpid returns -EINTR and the test case fails.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fa43c2f2
...@@ -77,6 +77,7 @@ int main(int argc, char ** argv) ...@@ -77,6 +77,7 @@ int main(int argc, char ** argv)
memset(&saio, 0, sizeof(saio)); memset(&saio, 0, sizeof(saio));
saio.sa_handler = (sig_t)signal_handler_io; saio.sa_handler = (sig_t)signal_handler_io;
saio.sa_flags = SA_RESTART;
sigaction(SIGIO, &saio, 0); sigaction(SIGIO, &saio, 0);
if (setresuid(-1, 1, -1)) { if (setresuid(-1, 1, -1)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment