[Top][All Lists]

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

Re: passfd on more platforms

From: Bruno Haible
Subject: Re: passfd on more platforms
Date: Tue, 15 Mar 2011 00:17:59 +0100
User-agent: KMail/1.9.9

Eric Blake asked:
> >   - to rewrite the test to use the 'execute' module instead of fork().
> Why do we even need a child process?  Can't we test passing of an fd
> between two threads of the same process?

1) Because the typical use-case is passing file descriptors between different
2) Because passing file descriptors implies a conversion step (that happens in
   the kernel), and a unit test that only uses two threads doesn't exercise
   this essential part of the functionality: If the conversion step was
   missing, the test wouldn't notice.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]