mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
17 lines
202 B
C
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;
|
||
|
}
|