Skip to content

SIGINT 관련 질문 #2

@parkchaehyun

Description

@parkchaehyun

안녕하세요,
README에는 서버에서 SIGINT가 첫번째로 들어오면 thread를 terminate하고 그 다음에 SIGINT가 한번 더 들어오면 statistics를 print하고 프로그램을 terminate해야 하는 것으로 나와있는데,

스켈레톤과 reference에는 첫 SIGINT를 받으면 thread가 terminate되고 sleep한 후 프로그램이 바로 terminate되고 있는 것 같습니다. sigint_handler의 마지막 두 줄 (sleep(3); exit(EXIT_SUCCESS);)을 지우면 될까요?

Metadata

Metadata

Assignees

No one assigned

    Labels

    solvedQuestion solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions