| commit | 6e4e77a974ebeaa5704fa6d127e163a484b12607 | [log] [tgz] |
|---|---|---|
| author | Jan Stancek <jstancek@redhat.com> | Fri Mar 07 11:39:56 2014 +0100 |
| committer | Jan Stancek <jstancek@redhat.com> | Fri Mar 14 11:27:16 2014 +0100 |
| tree | 7840d9efaa01580eecc959c0d85c2de29e2185b7 | |
| parent | e77bf55ad939fb1719a8e999993ab011675a220c [diff] |
do not pick free/unused port by chance Let the kernel pick free random port and do not rely on previously used formula: (getpid() % 32768) + 11000 to provide unused port numbers. If test only needs unused port number (without binding anything to it) get it with tst_get_unused_port(). Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>