[OPENSM] added syslog() call to record Windows Service control calls (128,129) [clear...
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Dec 2009 00:36:08 +0000 (00:36 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Dec 2009 00:36:08 +0000 (00:36 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2644 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/opensm/user/opensm/main.c

index 24932d6..9608c17 100644 (file)
@@ -1380,11 +1380,13 @@ void WINAPI OsmServiceCtrlHandler( IN DWORD Opcode )
       case SERVICE_CONTROL_OSM_REOPEN_LOG_FILE:\r
          osm_usr1_flag = 1;\r
          SvcDebugOut(" [OSM_SERVICE] SERVICE_CONTROL_OSM_REOPEN_LOG_FILE\n"); \r
+         syslog(LOG_INFO,"[SERVICE_CONTROL] REOPEN_LOG_FILE\n"); \r
          break;\r
 \r
       case SERVICE_CONTROL_OSM_START_HEAVY_SWEEP:\r
          osm_hup_flag = 1;\r
-         SvcDebugOut(" [OSM_SERVICE] SERVICE_CONTROL_OSM_START_HEAVY_SWEEP\n"); \r
+         SvcDebugOut("[OSM_SERVICE] SERVICE_CONTROL_OSM_START_HEAVY_SWEEP\n"); \r
+         syslog(LOG_INFO,"[SERVICE_CONTROL] START_HEAVY_SWEEP\n"); \r
          break;\r
 \r
       default: \r