2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 04:48:16 +00:00
criu/compel/test/infect/victim.c
Mike Rapoport dc4d61f84f compel/test: fix "infect" test compilation errors
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-09-21 01:00:23 +03:00

17 lines
202 B
C

#include <unistd.h>
int main(int argc, char **argv)
{
int i;
while (1) {
if (read(0, &i, sizeof(i)) != sizeof(i))
break;
if (write(1, &i, sizeof(i)) != sizeof(i))
break;
}
return 0;
}