fix segmentation fault
When running without a fake gps pipe, i.e. -f
switch unset, the program can
segfault. Fix this by checking for a valid fd before checking the fake pipe's
status.
When running without a fake gps pipe, i.e. -f
switch unset, the program can
segfault. Fix this by checking for a valid fd before checking the fake pipe's
status.