Changeset 1047
- Timestamp:
- 05/17/08 08:46:37 (7 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
etc/init-script.in (modified) (1 diff)
-
src/ct/status.c (modified) (1 diff)
-
src/include/openct/openct.h (modified) (1 diff)
-
src/tools/openct-control.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/etc/init-script.in
r1043 r1047 34 34 echo -n "Stopping $DESC: $NAME " 35 35 $DAEMON shutdown 36 rm "@OPENCT_SOCKET_PATH@/status"37 36 echo "." 38 37 ;; -
trunk/src/ct/status.c
r1042 r1047 64 64 } 65 65 66 int ct_status_destroy(void) 67 { 68 char status_path[PATH_MAX]; 69 70 if (!ct_format_path(status_path, PATH_MAX, "status")) { 71 return -1; 72 } 73 74 return unlink(status_path); 75 } 76 66 77 int ct_status_clear(unsigned int count, const char *owner) 67 78 { -
trunk/src/include/openct/openct.h
r1042 r1047 92 92 const void *send_buf, size_t send_len); 93 93 94 extern int ct_status_destroy(void); 94 95 extern int ct_status_clear(unsigned int, const char *); 95 96 extern ct_info_t * ct_status_alloc_slot(int *); -
trunk/src/tools/openct-control.c
r1042 r1047 158 158 } 159 159 160 ct_status_destroy(); 161 160 162 printf("%d process%s killed.\n", killed, (killed == 1) ? "" : "es"); 161 163 return 0;
