Re: [RFC][PATCH][cryo] Save/restore state of unnamed pipes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



| 
| 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux