-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcleanup_corba.cpp
31 lines (25 loc) · 1.32 KB
/
cleanup_corba.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/***************************************************************************
tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 test-main.cpp
test-main.cpp - description
-------------------
begin : Tue September 07 2010
copyright : (C) 2010 The SourceWorks
email : [email protected]
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <cstdlib>
#include <rtt-config.h>
#include <os/fosi.h>
int main(int argc, char** argv)
{
int i = system("[ ! -r corba-ipc-server.pid ] || kill -9 $(cat corba-ipc-server.pid)");
i = system("[ ! -r corba-mqueue-ipc-server.pid ] || kill -9 $(cat corba-mqueue-ipc-server.pid)");
usleep(500000);
return i;
}