Return to testSnmpHandler.cpp CVS log | Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler / tests / testclient |
version 1.9, 2007/09/07 18:43:08 | version 1.10, 2007/09/12 19:44:25 | ||
---|---|---|---|
|
| ||
FILE *fd; | FILE *fd; | ||
if ((fd = fopen(procIdFileName.getCString(), "r")) != NULL) | if ((fd = fopen(procIdFileName.getCString(), "r")) != NULL) | ||
{ | { | ||
fscanf(fd, "%d\n", &receiverPid); | if (fscanf(fd, "%d\n", &receiverPid) != 1) | ||
{ | |||
throw Exception("Failed to read trapd pid from procIdFile."); | |||
} | |||
kill(receiverPid, SIGTERM); | kill(receiverPid, SIGTERM); | ||
|
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |