<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,7 @@ tmpdir=&quot;$TMPDIR&quot;
 test -z &quot;$tmpdir&quot; &amp;&amp; tmpdir=/tmp
 tmpf=&quot;${tmpdir}/bnch$$&quot;
 nc='nc -q 1'
+nc -q 1 2&gt;&amp;1 | grep -q option &amp;&amp; nc='nc -w 1' # workaround for older netcat
 
 commands=&quot;$1&quot;; shift
 expected=&quot;$1&quot;; shift
@@ -37,7 +38,7 @@ fi
 bpid=$!
 
 sleep .1
-if ! ps $bpid &gt;/dev/null; then
+if ! ps -p $bpid &gt;/dev/null; then
   echo &quot;Could not start beanstalkd for testing, port $port is taken&quot;
   exit 2
 fi</diff>
      <filename>check-one.sh</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,7 @@ out1=&quot;${tmpdir}/bnch$$.1&quot;
 out2=&quot;${tmpdir}/bnch$$.2&quot;
 logdir=&quot;${tmpdir}/bnch$$.d&quot;
 nc='nc -q 1'
+nc -q 1 2&gt;&amp;1 | grep -q option &amp;&amp; nc='nc -w 1' # workaround for older netcat
 
 killbeanstalkd() {
     {
@@ -41,7 +42,7 @@ mkdir -p $logdir
 bpid=$!
 
 sleep .1
-if ! ps $bpid &gt;/dev/null; then
+if ! ps -p $bpid &gt;/dev/null; then
   echo &quot;Could not start beanstalkd for testing (possibly port $port is taken)&quot;
   exit 2
 fi
@@ -64,7 +65,7 @@ sleep .1
 bpid=$!
 
 sleep .1
-if ! ps $bpid &gt;/dev/null; then
+if ! ps -p $bpid &gt;/dev/null; then
   echo &quot;Could not start beanstalkd for testing (possibly port $port is taken)&quot;
   exit 2
 fi</diff>
      <filename>sh-tests/binlog-basic.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af441c93dc6058e882b8dc2ab84002ad1ec89e79</id>
    </parent>
  </parents>
  <author>
    <name>Keith Rarick</name>
    <email>kr@xph.us</email>
  </author>
  <url>http://github.com/kr/beanstalkd/commit/95ff7060d7b0ca92dfd472fcd5719272831b519c</url>
  <id>95ff7060d7b0ca92dfd472fcd5719272831b519c</id>
  <committed-date>2009-05-15T16:33:36-07:00</committed-date>
  <authored-date>2009-05-15T16:33:36-07:00</authored-date>
  <message>Make shell tests run on Solaris too.</message>
  <tree>38185adad4bb19f9645786e5b0b91d24acdc8a47</tree>
  <committer>
    <name>Keith Rarick</name>
    <email>kr@xph.us</email>
  </committer>
</commit>
