Suggestion for a new system call: convert file handle to a cookie for transfering file handles between processes.
Although it is posible to use unix sockets, my proposal integrates better with shell scripts.
Ramon
Quoted 2 lines · RAMON_GARCIA_F
Although it is posible to use unix sockets, my proposal integrates better with shell scripts.
How?
Whether you put magic into the kernel, or you build a user space server, the interface can be the exact same. I don't buy the 'integrates better' argument.
It looks like you want simpler code in user space, at the cost of complicating the kernel, for a feature that will be not be used very frequently at all. Is this not correct?
mark
Signature · 9 lines
[email protected]/[email protected]/[email protected] __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/
Quoted 2 lines · RAMON_GARCIA_F
Although it is posible to use unix sockets, my proposal integrates better with shell scripts.
I fail to see why using sockets et al in shell scripts is that important. You have full access to the API from Perl, for one; shell scripts are used mostly as scaffolding for calling "normal" programs, so inventing something to do what you want and call that from the shell is the way to go IMHO. Only if there is absolutely no way to do it sanely outside the kernel, and futhermore it is very important to do, should the kernel get involved (sure, Linux is way the largest Unix installed base around today, but still _far_ from the one that defines the standards in the area, which means a Linux-only system call is a step forward and three back, so...)
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513