00001 /*************************************************************************** 00002 tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 test-main.cpp 00003 00004 test-main.cpp - description 00005 ------------------- 00006 begin : Tue September 07 2010 00007 copyright : (C) 2010 The SourceWorks 00008 email : peter@thesourceworks.com 00009 00010 *************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 00020 #include <cstdlib> 00021 #include <rtt-config.h> 00022 #include <os/fosi.h> 00023 00024 00025 int main(int argc, char** argv) 00026 { 00027 int i = system("[ ! -r corba-ipc-server.pid ] || kill -9 $(cat corba-ipc-server.pid)"); 00028 i = system("[ ! -r corba-mqueue-ipc-server.pid ] || kill -9 $(cat corba-mqueue-ipc-server.pid)"); 00029 usleep(500000); 00030 return i; 00031 }