2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 04:48:16 +00:00
criu/compel/test/fdspy/victim.c
Pavel Emelyanov 36ebce8d9c compel: Test for FDs stealing
An example, that steals stderr descriptor from victim task.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 09:36:09 +03:00

13 lines
131 B
C

#include <unistd.h>
int main(int argc, char **argv)
{
int i, aux;
do {
i = read(0, &aux, 1);
} while (i > 0);
return 0;
}