Re: conntrack accounting

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

 



On Jan 5 2008 09:22, Ben Lentz wrote:
>> Ben Lentz wrote:
>>   
>> > > One more thing... it looks like daemon mode doesn't detach from it's
>> > > controlling terminal, still shows "pts/1", and hangs upon logout:
>> > >       
>> > Added setsid(), patch attached.
>> >     
>>
>> Applied. Thanks again.
>>   
> Hmmm... file descriptors for STDIN, STDOUT, and STDERR should be closed, too...
> the setsid() detaches the controlling terminal but a terminal still hangs at
> logout after starting the daemon. A quick-and-dirty patch is attached, but
> there's probably a "better" way to do this.
>
> Thanks very much for considering my patches! I really appreciate the work
> you've done implementing my suggestions!
>
>

close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux