#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include "version.h"
#include "sha1sum.h"
#include "proc_list.h"
#include "proc_compare.h"
매크로 | |
#define | KILLED_LOG_FILE "/var/killed_proc.log" |
프로세스 kill 로그 파일 경로 | |
함수 | |
void | show_title (void) |
프로그램 명, 버전 출력 | |
void | usage (void) |
사용법 출력 | |
void | write_log (char *log) |
프로세스 kill 로그 기록 | |
int | main (int argc, char *argv[]) |
Main 함수 | |
변수 | |
int | Debug = 0 |
디버깅 모드 설정 변수 |
http://kldp.net/projects/oblog/
#define KILLED_LOG_FILE "/var/killed_proc.log" |
프로세스 kill 로그 파일 경로
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Main 함수
argc | ||
argv |
void show_title | ( | void | ) |
프로그램 명, 버전 출력
void usage | ( | void | ) |
사용법 출력
void write_log | ( | char * | log | ) |
프로세스 kill 로그 기록
log | 로그에 기록할 문자열 |
int Debug = 0 |
디버깅 모드 설정 변수