1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/tools/rmsem.cpp
Steffen Vogel 7eec1bb753 update Steffens mail address
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-12-16 23:44:07 +01:00

20 lines
501 B
C++

/** Delete semaphores.
*
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
#include <semaphore.h>
#include <iostream>
int main(int argc, char *argv[])
{
for (int i = 1; i < argc; i++) {
int ret = sem_unlink(argv[i]);
if (ret)
std::cerr << "Failed to unlink: " << argv[i] << std::endl;
}
return 0;
}