>
> Hi,
>
> This is a question about implementing a module access policy
> where only the process that opened a device can have a copy
> of that fd, i.e. I want the fd closed on fork().
>
switch(fork())
{
case 0: /* Child */
(void)close(fd);
In Unix, we close what we want, when we want.
Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/