Ticket #781: trigger-remote-fd-leak
File trigger-remote-fd-leak, 389 bytes (added by , 6 years ago) |
---|
Line | |
---|---|
1 | #!/bin/sh |
2 | set -e |
3 | |
4 | port=5050 |
5 | |
6 | echo "Starting xapian-tcpsrv" |
7 | rm -rf tmp.db |
8 | bin/xapian-tcpsrv --writable --one-shot --port "$port" --interface localhost tmp.db & |
9 | |
10 | sleep 1 |
11 | |
12 | echo "Opening DB for writing in background" |
13 | (sleep 10|examples/simpleindex tmp.db &) |
14 | |
15 | sleep 1 |
16 | |
17 | echo "remote localhost:$port" > tmp.stub |
18 | |
19 | ps ux|grep simpleindex |
20 | echo "Trying to open remote" |
21 | ./tst-remote-leak |
22 | |
23 | echo "Done" |