Commit 8e1842ae authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm/pty02: ignore SIGHUP

The test proces opens master and slave points. The slave point becomes
the control terminal for this process. Then the test process forks a
second process and the first process closes the master point. So when a
master point is closed in a second process, the first one will be killed
by SIGHUP.
Reported-by: 's avatarVictor Konyashkin <vkonyashkin@parallels.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5a146957
...@@ -81,6 +81,7 @@ int main(int argc, char *argv[]) ...@@ -81,6 +81,7 @@ int main(int argc, char *argv[])
test_daemon(); test_daemon();
test_waitsig(); test_waitsig();
signal(SIGHUP, SIG_IGN);
task_waiter_complete(&t, 1); task_waiter_complete(&t, 1);
ret = read(slave, buf, sizeof(teststr) - 1); ret = read(slave, buf, sizeof(teststr) - 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