[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
processes.
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.
Bruno
- passfd on OpenBSD, (continued)
- passfd on OpenBSD, Bruno Haible, 2011/03/13
- passfd on FreeBSD, Bruno Haible, 2011/03/13
- passfd on AIX 5.2, Bruno Haible, 2011/03/13
- passfd on Solaris, Bruno Haible, 2011/03/13
- passfd on more platforms, Bruno Haible, 2011/03/13
- Re: passfd on more platforms, Eric Blake, 2011/03/14
- Re: passfd on more platforms,
Bruno Haible <=
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14
- Re: passfd on more platforms, Bastien ROUCARIES, 2011/03/14
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14
- Re: passfd on more platforms, Bastien ROUCARIES, 2011/03/14
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14
- Re: passfd on more platforms, Eric Blake, 2011/03/14
- Re: passfd on more platforms, Bastien ROUCARIES, 2011/03/14
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14
- Re: passfd on more platforms, Bastien ROUCARIES, 2011/03/14
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14