2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

signals: dump alternate stack as misc parameters

The initilization stage is not good for that, because it can fail.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2013-07-11 13:46:48 +04:00
committed by Pavel Emelyanov
parent 27582e3272
commit c2c44d5261
4 changed files with 16 additions and 15 deletions

View File

@@ -668,6 +668,9 @@ static int dump_task_core_all(struct parasite_ctl *ctl,
core_put_tls(core, misc->tls);
CORE_THREAD_ARCH_INFO(core)->clear_tid_addr = encode_pointer(misc->tid_addr);
BUG_ON(!core->thread_core->sas);
copy_sas(core->thread_core->sas, &misc->sas);
ret = pb_write_one(fd_core, core, PB_CORE);
if (ret < 0)
goto err;