Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

signal()

No description
by

game over

on 25 June 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of signal()

시그널 발생시 처리 방법

SIGPIPE
SIGHUP

SIGKILL
SIGSTOP
SIGSEGV
SIGTERM
SIGBUS
SIG_IGN 무시
SigProc()함수에서 처리
ST_SHM_MANAGE* g_pShmMsg
공유메모리
ST_SHM_MANAGE구조체
크기:ST_SHM_MANAGE형
주소
현재 프로세스
shmat()
현재 프로세스와 연결
stProcInfo형
npid
0
npid
0
npid
0
npid
0
npid
0
npid
0
초기값 : 0
주소
ST_PROC_INFO* g_pstProcInfo
초기값 : 0번째 주소
stProcInfo형 갯수 = 64
0
int nNoProc
nPid > 0 갯수
0 ~ 64개
초기값 : 0
log를 위한 메시지 큐
log를 멀티캐스트로 보낼 소켓
연결된 다른 소켓에 정보 전달
int nMsgID
stProcInfo구조체
szMulIp
szMulIf
cRun
cActive
nStDate
nstTime
cLogLvl
cTrcLvl
int nMcFD
ProcInit()
ST_SHM_MANAGE* g_pShmMsg
공유메모리
ST_SHM_MANAGE
주소
stProcInfo형
npid
0
npid
0
npid
0
npid
0
npid
0
npid
0
stProcInfo형 갯수 = 64
0
int nNoProc
초기값 : 0
int nMsgID
stProcInfo형
szMulIp
szMulIf
cRun
cActive
nStDate
nstTime
cLogLvl
cTrcLvl
int nMcFD
procExit()
ST_SHM_MANAGE.ST_PROC_INFO형 내부 변수를 모두 NULL로 초기화
ST_PROC_INFO[0~정보가 채워져 있는 마지막 장소]
szMcIP
szMcIF
nMcPort
nLogQkey
LogFileDir
TrcfileDir
InifileDir
szIni
g_szSysIni
cLogLvl
cTrcLvl
home/ini/system.ini파일
LoadECDInfo()
home/ini/system.ini
nTotal
g_pShmMng
ST_SHM_MANAGE
주소
nECDSvrCnt
nECDSvrCnt개
stECDList
szIpAddr
nPort
szIp
nPort
0
10
Full transcript