gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Revised adaptive-delay code - please test


From: Hal Murray
Subject: Re: [gpsd-dev] Revised adaptive-delay code - please test
Date: Wed, 28 Jan 2015 02:06:00 -0800

Here is a recipe to make it hang.

Run the script below.  It isn't pretty, but it works for me.  In another 
window, run gpsmon.

I've seen it hang in under a minute.  My latest try took 15 minutes.  YMMV.

gpsd is not getting an uncaught signal.  (I'm running it from gdb.)  It's 
just not doing anything.



#!/bin/bash

while true
do
  date
  ./gpspipe -n 3 -R -o /dev/null # hang if gpsd is sick
  ./gpspipe -d -R -o /dev/null
  sleep 2
  DELAY=$RANDOM      # 0-32K
  usleep ${DELAY}00  # 0-3 seconds
  killall gpspipe
  ps ax | grep gpspipe
done


-- 
These are my opinions.  I hate spam.






reply via email to

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