Skip to content

Commit

Permalink
Doesn't shut down on ctrl+C
Browse files Browse the repository at this point in the history
  • Loading branch information
krishauser committed Feb 10, 2016
1 parent b417026 commit d54878b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/Motion/motion_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,11 @@ BOOL publishState(const char* system_state_addr)
}

void my_interrupt_handler(int s){
printf("Caught signal %d\n",s);
printf("Caught signal %d, stopping robot\n",s);
gData.mutex.try_lock();
gData.mutex.unlock();
printf("stopMotion\n");
stopMotion();
printf("sendShutdown\n");
sendShutdown();
//sendShutdown();
exit(1);

}
Expand Down

0 comments on commit d54878b

Please sign in to comment.