:: Re: [DNG] An Anti-Initsystem, clfds
Top Page
Delete this message
Reply to this message
Author: karl
Date:  
To: dng
Old-Topics: Re: [DNG] An Anti-Initsystem
Subject: Re: [DNG] An Anti-Initsystem, clfds
Rainer Weikusat:
...
> I'd greatly appreciate if someone who thinks he has the time would read
> through the man pages

...

close open file descriptors and execute a command
->
execute a command with open file descriptors closed

To avoid confusion about which process that has fd's closed.

///

$ ../../bin/clfds 
clfds[19821]: Usage: clfds [-k <fd>[,<fd>]* <cmd> <args>*
clfds[19821]:     Close all open file descriptors except 0, 1 and 2 and any
clfds[19821]:     additional file descriptor specified via -k and run a command.


unclear what the second "and" binds to, is it
1, close all open fds and thoose given by -k
2, close all open fds but keep (0,1,2 and thoose given by -k)

1, could be used to also close 0,1,2.

Perhaps it is better to make it clear cut,
close ALL fds except thoose given by -k

///

Example use could help.

Regards,
/Karl Hammar