[Devel] Re: [RFC][PATCH][cryo] Save/restore state of unnamed pipes
sukadev at us.ibm.com
sukadev at us.ibm.com
Wed Jun 18 15:55:55 PDT 2008
|
| Now restart does :
|
| int pipefds[2];
|
| pipe(pipefds); /*
| * kernel is allowed to return pipefds[0] == 12 and
| * pipefds[1] == 11
| */
|
| dup2(pipefds[0], 11); /* closes pipefds[1]! */
| dup2(pipefds[1], 12);
Aah. I see it now (finally). Thanks,
Suka
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list